diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2012-02-24 18:04:21 -0500 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2012-02-25 15:20:54 -0500 |
| commit | 6b66b882ecf74a36ba7abf8e3003d052ce8a807b (patch) | |
| tree | 93d220b371526e459a93f16808d4c34ceebe3fd0 /apps/keymaps | |
| parent | b5cd5ce8a136e49b6c8b9d541a5b4928709a8956 (diff) | |
| download | rockbox-6b66b882ecf74a36ba7abf8e3003d052ce8a807b.zip rockbox-6b66b882ecf74a36ba7abf8e3003d052ce8a807b.tar.gz rockbox-6b66b882ecf74a36ba7abf8e3003d052ce8a807b.tar.bz2 rockbox-6b66b882ecf74a36ba7abf8e3003d052ce8a807b.tar.xz | |
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
Diffstat (limited to 'apps/keymaps')
| -rwxr-xr-x | apps/keymaps/keymap-clip.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-clip.c b/apps/keymaps/keymap-clip.c index ba5b8de..83e1b4b 100755 --- a/apps/keymaps/keymap-clip.c +++ b/apps/keymaps/keymap-clip.c @@ -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; |