1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 18:21:57 +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 '*': case '*':
zoom_to_extents(ctx); zoom_to_extents(ctx);
break; 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_BackSpace:
case GDK_KEY_Delete: case GDK_KEY_Delete:
if (sheet->prev) { if (sheet->prev) {