diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-28 12:34:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-28 12:34:28 +0200 |
commit | bb46793cb2a52b7d0c85c05e360e01cdeed88cee (patch) | |
tree | 6644abf0b471f2cc998bcccc80b873e1566e6b9f | |
parent | d8d22aa36fe2b7258c8bfad56ef87d4de67bbbed (diff) |
Patch by aaptel: Support numpad keys for actions
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/keyevents.c | 10 |
2 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,7 @@ +git HEAD + + * Patch by aaptel: Support numpad keys for actions + Thu May 6 08:34:39 CEST 2010 Daniel Friesel <derf@chaosdorf.de> * Release v1.5 diff --git a/src/keyevents.c b/src/keyevents.c index eeb3d1e..c6028ca 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -228,33 +228,43 @@ void feh_event_handle_keypress(XEvent * ev) feh_event_invoke_action(winwid, opt.actions[0]); break; case XK_0: + case XK_KP_0: feh_event_invoke_action(winwid, opt.actions[0]); break; case XK_1: + case XK_KP_1: feh_event_invoke_action(winwid, opt.actions[1]); break; case XK_2: + case XK_KP_2: feh_event_invoke_action(winwid, opt.actions[2]); break; case XK_3: + case XK_KP_3: feh_event_invoke_action(winwid, opt.actions[3]); break; case XK_4: + case XK_KP_4: feh_event_invoke_action(winwid, opt.actions[4]); break; case XK_5: + case XK_KP_5: feh_event_invoke_action(winwid, opt.actions[5]); break; case XK_6: + case XK_KP_6: feh_event_invoke_action(winwid, opt.actions[6]); break; case XK_7: + case XK_KP_7: feh_event_invoke_action(winwid, opt.actions[7]); break; case XK_8: + case XK_KP_8: feh_event_invoke_action(winwid, opt.actions[8]); break; case XK_9: + case XK_KP_9: feh_event_invoke_action(winwid, opt.actions[9]); break; case XK_KP_Left: |