Fix browser input ignore while loading

This commit is contained in:
Willy-JL
2023-07-14 16:46:23 +02:00
parent f78da36c50
commit 6ecb6d93ab
2 changed files with 4 additions and 4 deletions

View File

@@ -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(