mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 16:32:53 +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 '*':
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user