summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-28 12:34:28 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-28 12:34:28 +0200
commitbb46793cb2a52b7d0c85c05e360e01cdeed88cee (patch)
tree6644abf0b471f2cc998bcccc80b873e1566e6b9f /src
parentd8d22aa36fe2b7258c8bfad56ef87d4de67bbbed (diff)
Patch by aaptel: Support numpad keys for actions
Diffstat (limited to 'src')
-rw-r--r--src/keyevents.c10
1 files changed, 10 insertions, 0 deletions
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: