diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-12 17:50:31 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-12 17:50:31 +0100 |
commit | 91bd85a87464ea83e79bdae9a7280acc5ad8c260 (patch) | |
tree | 78b63ee11eb479ec5d005b04c75ea70f32fd06cd | |
parent | 4edd5614c4231893a4e2976f28106c4a5a31a830 (diff) |
Don't recognize keypad +,-,/,* as normal input
-rw-r--r-- | src/keyevents.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 577860f..a3ab4d3 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -298,18 +298,23 @@ feh_event_handle_keypress(XEvent * ev) winwidget_render_image(winwid, 0, 0); break; case XK_KP_Add: + /* erroneously recognized as '+' in the *kbuf switch. Work around this. */ + len = 0; winwid->zoom = winwid->zoom * 1.25; winwidget_render_image(winwid, 0, 0); break; case XK_KP_Subtract: + len = 0; winwid->zoom = winwid->zoom * 0.75; winwidget_render_image(winwid, 0, 0); break; case XK_KP_Multiply: + len = 0; winwid->zoom = 1; winwidget_render_image(winwid, 0, 0); break; case XK_KP_Divide: + len = 0; feh_calc_needed_zoom(&winwid->zoom, winwid->im_w, winwid->im_h, winwid->w, winwid->h); winwidget_render_image(winwid, 0, 0); break; |