forked from len0rd/rockbox
Commit FS#12288 - Sansa Clip+: "Home" in the main menu to WPS/Radio.
Author: Akio Idehara Change the keymap for all Sandisk Clip series players so that pressing home in the main menu will return to the last viewed of either the WPS or the radio screen. Change-Id: Id890bf3593a9e6313304c9f7bb3ceb9a36ea6f33
This commit is contained in:
parent
b5cd5ce8a1
commit
6b66b882ec
1 changed files with 8 additions and 1 deletions
|
|
@ -165,6 +165,12 @@ static const struct button_mapping button_context_listtree_scroll_with_combo[]
|
|||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM|CONTEXT_TREE),
|
||||
}; /* button_context_listtree_scroll_with_combo */
|
||||
|
||||
static const struct button_mapping button_context_mainmenu[] = {
|
||||
{ ACTION_TREE_WPS, BUTTON_HOME|BUTTON_REL, BUTTON_HOME },
|
||||
|
||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_TREE),
|
||||
}; /* button_context_mainmenu */
|
||||
|
||||
static const struct button_mapping button_context_yesno[] = {
|
||||
{ ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE },
|
||||
|
||||
|
|
@ -399,11 +405,12 @@ const struct button_mapping* get_context_mapping(int context)
|
|||
case CONTEXT_LIST:
|
||||
return button_context_list;
|
||||
case CONTEXT_TREE:
|
||||
case CONTEXT_MAINMENU:
|
||||
if (global_settings.hold_lr_for_scroll_in_list)
|
||||
return button_context_listtree_scroll_without_combo;
|
||||
else
|
||||
return button_context_listtree_scroll_with_combo;
|
||||
case CONTEXT_MAINMENU:
|
||||
return button_context_mainmenu;
|
||||
case CONTEXT_CUSTOM|CONTEXT_TREE:
|
||||
return button_context_tree;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue