1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 12:54:35 +02:00

eeshow/gui.c (key_press_event): Home returns to the topmost sheet

This commit is contained in:
Werner Almesberger 2016-08-03 16:00:51 -03:00
parent 9b81d08525
commit d07a5b8d8b

View File

@ -349,6 +349,13 @@ static gboolean key_press_event(GtkWidget *widget, GdkEventKey *event,
case '*':
zoom_to_extents(ctx);
break;
case GDK_KEY_Home:
if (sheet != ctx->sheets) {
sheet->prev = NULL;
ctx->curr_sheet = ctx->sheets;
zoom_to_extents(ctx);
}
break;
case GDK_KEY_BackSpace:
case GDK_KEY_Delete:
if (sheet->prev) {