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

@@ -360,8 +360,8 @@ static bool archive_view_input(InputEvent* event, void* context) {
}, },
false); false);
if(is_loading) { if(is_loading && event->key != InputKeyBack) {
return false; return true; // Return without doing anything
} }
if(in_menu) { if(in_menu) {
if(event->type != InputTypeShort) { if(event->type != InputTypeShort) {

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; }, { is_loading = model->folder_loading || model->list_loading; },
false); false);
if(is_loading) { if(is_loading && event->key != InputKeyBack) {
return false; return true; // Return without doing anything
} else if(event->key == InputKeyUp || event->key == InputKeyDown) { } else if(event->key == InputKeyUp || event->key == InputKeyDown) {
if(event->type == InputTypeShort || event->type == InputTypeRepeat) { if(event->type == InputTypeShort || event->type == InputTypeRepeat) {
with_view_model( with_view_model(