summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-07 19:59:09 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-07 19:59:09 +0200
commit618beee24166caf02f2bc881a1d27a4ef1b3ccbd (patch)
tree7d92a95ae2b012fcf7c6302c70cf9f2b9237252f /src/keyevents.c
parent24ccac56dec84f49a9f32c62c9550f34f0591146 (diff)
downloadfeh-618beee24166caf02f2bc881a1d27a4ef1b3ccbd.zip
Removed undocumented hjkl menu keys
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index e513775..a5cafb9 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -93,29 +93,7 @@ void feh_event_handle_keypress(XEvent * ev)
feh_menu_select_submenu(selected_menu);
break;
case XK_Return:
- feh_menu_item_activate(selected_menu, selected_item);
- break;
- default:
- break;
- }
- if (len <= 0 || len > (int) sizeof(kbuf))
- D_RETURN_(4);
- kbuf[len] = '\0';
-
- switch (*kbuf) {
- case 'h':
- feh_menu_select_parent(selected_menu);
- break;
- case 'j':
- feh_menu_select_next(selected_menu, selected_item);
- break;
- case 'k':
- feh_menu_select_prev(selected_menu, selected_item);
- break;
- case 'l':
- feh_menu_select_submenu(selected_menu);
- break;
- case ' ':
+ case XK_space:
feh_menu_item_activate(selected_menu, selected_item);
break;
default: