From 6ecb6d93abee1b7693b32c6511b327e05a396c8d Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 14 Jul 2023 16:46:23 +0200 Subject: [PATCH] Fix browser input ignore while loading --- applications/main/archive/views/archive_browser_view.c | 4 ++-- applications/services/gui/modules/file_browser.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/applications/main/archive/views/archive_browser_view.c b/applications/main/archive/views/archive_browser_view.c index a335890c0..3cb0e88ca 100644 --- a/applications/main/archive/views/archive_browser_view.c +++ b/applications/main/archive/views/archive_browser_view.c @@ -360,8 +360,8 @@ static bool archive_view_input(InputEvent* event, void* context) { }, false); - if(is_loading) { - return false; + if(is_loading && event->key != InputKeyBack) { + return true; // Return without doing anything } if(in_menu) { if(event->type != InputTypeShort) { diff --git a/applications/services/gui/modules/file_browser.c b/applications/services/gui/modules/file_browser.c index 23bf1b76a..ca09d01b2 100644 --- a/applications/services/gui/modules/file_browser.c +++ b/applications/services/gui/modules/file_browser.c @@ -661,8 +661,8 @@ static bool file_browser_view_input_callback(InputEvent* event, void* context) { { is_loading = model->folder_loading || model->list_loading; }, false); - if(is_loading) { - return false; + if(is_loading && event->key != InputKeyBack) { + return true; // Return without doing anything } else if(event->key == InputKeyUp || event->key == InputKeyDown) { if(event->type == InputTypeShort || event->type == InputTypeRepeat) { with_view_model(