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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user