1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

launcher v2: fix context switch back on empty text field

This commit is contained in:
bbedward
2026-01-20 21:57:50 -05:00
parent 0e7f628c4a
commit 1f2e231386

View File

@@ -134,8 +134,14 @@ FocusScope {
root.parentModal.hide();
return;
case Qt.Key_Backspace:
if (searchField.text.length === 0 && controller.clearPluginFilter())
if (searchField.text.length === 0) {
if (controller.clearPluginFilter())
return;
if (controller.autoSwitchedToFiles) {
controller.restorePreviousMode();
return;
}
}
event.accepted = false;
return;
case Qt.Key_Down: