aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-06-28 15:47:48 +0200
committerBert <ber.t@gmx.com>2011-06-28 15:47:48 +0200
commitdde2d9d0232efbaa2fb1e691a9ef2e197a46692a (patch)
treebe078862c70b9061ee26d26a3da4ff42fe1ed282
parentbd87ae9346503cb13ab1d12ff6f135b77fa0b473 (diff)
Support XK_KP_{Add,Subtract} for zooming
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 1ff5c7e..e653476 100644
--- a/main.c
+++ b/main.c
@@ -431,12 +431,15 @@ void on_keypress(XKeyEvent *kev) {
/* zooming */
case XK_plus:
case XK_equal:
+ case XK_KP_Add:
changed = img_zoom_in(&img, &win);
break;
case XK_minus:
+ case XK_KP_Subtract:
changed = img_zoom_out(&img, &win);
break;
case XK_0:
+ case XK_KP_0:
changed = img_zoom(&img, &win, 1.0);
break;
case XK_w: