diff options
Diffstat (limited to 'libmenu/menu_filesel.c')
-rw-r--r-- | libmenu/menu_filesel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmenu/menu_filesel.c b/libmenu/menu_filesel.c index 906ff436fd..93cfa6c806 100644 --- a/libmenu/menu_filesel.c +++ b/libmenu/menu_filesel.c @@ -377,17 +377,17 @@ static void read_cmd(menu_t* menu,int cmd) { } } -static void read_key(menu_t* menu,int c){ +static int read_key(menu_t* menu,int c){ char **str; for (str=mpriv->actions; str && *str; str++) if (c == (*str)[0]) { action = &(*str)[2]; read_cmd(menu,MENU_CMD_ACTION); - return; + return 1; } if (menu_dflt_read_key(menu, c)) - return; - menu_list_jump_to_key(menu, c); + return 1; + return menu_list_jump_to_key(menu, c); } static void clos(menu_t* menu) { |