file-browser: prevent backspace from navigating up on the desktop

This commit is contained in:
K. Lange 2022-06-01 05:59:35 +09:00
parent c47102559b
commit 27adbe8dd3

View File

@ -2116,7 +2116,9 @@ int main(int argc, char * argv[]) {
arrow_select(1,0); arrow_select(1,0);
break; break;
case KEY_BACKSPACE: case KEY_BACKSPACE:
if (!is_desktop_background) {
_menu_action_up(NULL); _menu_action_up(NULL);
}
break; break;
case '\n': case '\n':
_menu_action_open(NULL); _menu_action_open(NULL);