From edd708ca67ec573a47799f569bd8472193a06a60 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Thu, 3 Aug 2023 03:21:24 +0200 Subject: [PATCH] Fix lefty inputs with vertical menu --- applications/services/gui/modules/menu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/applications/services/gui/modules/menu.c b/applications/services/gui/modules/menu.c index 1983369f9..fd250f448 100644 --- a/applications/services/gui/modules/menu.c +++ b/applications/services/gui/modules/menu.c @@ -283,6 +283,14 @@ static void menu_draw_callback(Canvas* canvas, void* _model) { static bool menu_input_callback(InputEvent* event, void* context) { Menu* menu = context; bool consumed = true; + if(XTREME_SETTINGS()->menu_style == MenuStyleVertical && + furi_hal_rtc_is_flag_set(FuriHalRtcFlagHandOrient)) { + if(event->key == InputKeyLeft) { + event->key = InputKeyRight; + } else if(event->key == InputKeyRight) { + event->key = InputKeyLeft; + } + } if(event->type == InputTypeShort) { switch(event->key) {