From 59f3f43d10b58e787d23726db7ce5f22977dabf9 Mon Sep 17 00:00:00 2001 From: "roman.artiukhin" Date: Sun, 30 Oct 2022 13:48:20 +0200 Subject: [PATCH] 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 --- apps/shortcuts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;