summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-25 01:14:32 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-25 01:14:32 -0300
commite2e74bdc26415724d0d295f432d959acf2dfbcc1 (patch)
tree68c0c87900dcbccbbe6a26965a549f31773e541b /gui
parent9c3c58c5b1115a7b2205ac4997c3c7e78e2f438d (diff)
downloadeeshow-e2e74bdc26415724d0d295f432d959acf2dfbcc1.tar.gz
eeshow-e2e74bdc26415724d0d295f432d959acf2dfbcc1.tar.bz2
eeshow-e2e74bdc26415724d0d295f432d959acf2dfbcc1.zip
gui/sheet.c (sheet_key): keypad +, =, *, -; GDK_KEY_Help
Diffstat (limited to 'gui')
-rw-r--r--gui/sheet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index f500078..dc9676b 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -505,12 +505,16 @@ static void sheet_key(void *user, int x, int y, int keyval)
switch (keyval) {
case '+':
case '=':
+ case GDK_KEY_KP_Add:
+ case GDK_KEY_KP_Equal:
zoom_in(ctx, x, y);
break;
case '-':
+ case GDK_KEY_KP_Subtract:
zoom_out(ctx, x, y);
break;
case '*':
+ case GDK_KEY_KP_Multiply:
zoom_to_extents(ctx);
break;
@@ -575,6 +579,7 @@ static void sheet_key(void *user, int x, int y, int keyval)
break;
case GDK_KEY_h:
+ case GDK_KEY_Help:
help();
break;