diff options
author | roman.artiukhin <bahusdrive@gmail.com> | 2022-10-30 13:48:20 +0200 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-02 06:55:19 -0400 |
commit | 59f3f43d10b58e787d23726db7ce5f22977dabf9 (patch) | |
tree | 49405f886cdc75e184a9f11b09e87f05c50a07a5 | |
parent | 4e60fb77e07fa417efebb58d673fb0b2156f55db (diff) | |
download | rockbox-59f3f43d10.tar.gz rockbox-59f3f43d10.zip |
Exit Shortcuts on ACTION_STD_MENU
It makes it behave consistently with tree/playlists other menus. So it's possible to exit Shortcuts using Back button on Clip Zip or Power button on Rocker
Change-Id: I8a52422ed2d96d0727ddacf364f87878735c6e4c
-rw-r--r-- | apps/shortcuts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 85bf006646..1253e77a65 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c @@ -446,7 +446,7 @@ static const char * shortcut_menu_get_name(int selected_item, void * data, static int shortcut_menu_get_action(int action, struct gui_synclist *lists) { (void)lists; - if (action == ACTION_STD_OK) + if (action == ACTION_STD_OK || action == ACTION_STD_MENU) return ACTION_STD_CANCEL; else if (action == ACTION_STD_QUICKSCREEN && action != ACTION_STD_CONTEXT) return ACTION_STD_CANCEL; |