mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix hotkey select behavior, ignore selection if menu item is not hotkeyable. Will not exit the context menu now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25877 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2ccb83dd80
commit
227e619bbf
1 changed files with 9 additions and 4 deletions
13
apps/menu.c
13
apps/menu.c
|
@ -437,10 +437,15 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
|
|||
((action == ACTION_WPS_HOTKEY) ||
|
||||
(action == ACTION_TREE_HOTKEY)))
|
||||
{
|
||||
ret = MENU_SELECTED_HOTKEY;
|
||||
done = true;
|
||||
selected = get_menu_selection(gui_synclist_get_sel_pos(&lists),menu);
|
||||
selected_menu_item = menu->submenus[selected];
|
||||
int this = get_menu_selection(gui_synclist_get_sel_pos(&lists),menu);
|
||||
temp = menu->submenus[this];
|
||||
if (temp->flags&MENU_FUNC_HOTKEYABLE)
|
||||
{
|
||||
selected_menu_item = temp;
|
||||
selected = this;
|
||||
ret = MENU_SELECTED_HOTKEY;
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else if (action == ACTION_TREE_WPS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue