mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 14:04:39 +02:00
eeshow/gui.c (key_press_event): Home returns to the topmost sheet
This commit is contained in:
parent
9b81d08525
commit
d07a5b8d8b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user