From d07a5b8d8bf6af364e9a06af6e18837414c95194 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 3 Aug 2016 16:00:51 -0300 Subject: [PATCH] eeshow/gui.c (key_press_event): Home returns to the topmost sheet --- eeshow/gui.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eeshow/gui.c b/eeshow/gui.c index 88d4341..2cac139 100644 --- a/eeshow/gui.c +++ b/eeshow/gui.c @@ -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) {