1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 16:02:51 -05:00

launcher v2: improve danksearch context switching behavior

This commit is contained in:
bbedward
2026-01-20 21:55:05 -05:00
parent 553f5257b3
commit 0e7f628c4a
3 changed files with 50 additions and 24 deletions

View File

@@ -247,7 +247,7 @@ FocusScope {
return;
case Qt.Key_Slash:
if (event.modifiers === Qt.NoModifier && searchField.text.length === 0) {
controller.setMode("files");
controller.setMode("files", true);
return;
}
event.accepted = false;
@@ -446,6 +446,9 @@ FocusScope {
onTextChanged: {
controller.setSearchQuery(text);
if (text.length === 0) {
controller.restorePreviousMode();
}
if (actionPanel.expanded) {
actionPanel.hide();
}