From 22ffd6204b6ec4c8b50c7730852135338a13e36b Mon Sep 17 00:00:00 2001 From: its your bedtime <23366927+itsyourbedtime@users.noreply.github.com> Date: Mon, 7 Jun 2021 18:55:31 +0300 Subject: [PATCH] menu: drop left/right keys navigation (#510) Co-authored-by: SG --- applications/menu/menu.c | 4 ---- applications/menu/menu_event.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/applications/menu/menu.c b/applications/menu/menu.c index b5093128..cc033b67 100644 --- a/applications/menu/menu.c +++ b/applications/menu/menu.c @@ -253,10 +253,6 @@ int32_t menu_task(void* p) { menu_down(menu); } else if(m.type == MenuMessageTypeOk) { menu_ok(menu); - } else if(m.type == MenuMessageTypeLeft) { - menu_back(menu); - } else if(m.type == MenuMessageTypeRight) { - menu_ok(menu); } else if(m.type == MenuMessageTypeBack) { menu_back(menu); } else if(m.type == MenuMessageTypeIdle) { diff --git a/applications/menu/menu_event.c b/applications/menu/menu_event.c index 1e87b2a6..e39b83de 100644 --- a/applications/menu/menu_event.c +++ b/applications/menu/menu_event.c @@ -53,10 +53,6 @@ void menu_event_input_callback(InputEvent* input_event, void* context) { message.type = MenuMessageTypeUp; } else if(input_event->key == InputKeyDown) { message.type = MenuMessageTypeDown; - } else if(input_event->key == InputKeyRight) { - message.type = MenuMessageTypeRight; - } else if(input_event->key == InputKeyLeft) { - message.type = MenuMessageTypeLeft; } else if(input_event->key == InputKeyOk) { message.type = MenuMessageTypeOk; } else if(input_event->key == InputKeyBack) {