From 13510877cf9ba61e0bd06e9afa67f8450d59e1ed Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 3 Apr 2020 13:29:04 +0200 Subject: [PATCH] Added long press right as shortcut for Sound Edit. --- UI.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/UI.hpp b/UI.hpp index 02305e2..c86c5ab 100644 --- a/UI.hpp +++ b/UI.hpp @@ -564,6 +564,15 @@ void lcdml_menu_control(void) #endif //LCDML.BT_quit(); encoderDir[ENC_R].ButtonLong(true); +#if defined(PATCH_MENU_ID2) + if (LCDML.FUNC_getID() != PATCH_MENU_ID1 && LCDML.FUNC_getID() != PATCH_MENU_ID2) +#else + if (LCDML.FUNC_getID() != PATCH_MENU_ID1) +#endif + { + last_cursor = get_current_cursor_id(); + LCDML.OTHER_jumpToFunc(UI_func_voice_select); + } } else if ((millis() - g_LCDML_CONTROL_button_press_time[ENC_R]) >= g_LCDML_CONTROL_button_short_press) { @@ -680,6 +689,8 @@ void lcdml_menu_control(void) #endif if (last_cursor == 0) LCDML.MENU_goRoot(); + else + LCDML.OTHER_setCursorToID(last_cursor); break; default: LCDML.BT_quit();