mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-04 04:28:30 -04:00
launcher: don't select pre-filled queries, exclude from memory
port 1.5
This commit is contained in:
@@ -161,6 +161,7 @@ Item {
|
||||
}
|
||||
if (spotlightContent.controller) {
|
||||
spotlightContent.controller.reset();
|
||||
spotlightContent.controller.explicitQuerySession = !!query;
|
||||
spotlightContent.controller.searchMode = targetMode;
|
||||
spotlightContent.controller.historyIndex = -1;
|
||||
if (targetQuery.length > 0)
|
||||
@@ -171,7 +172,10 @@ Item {
|
||||
}
|
||||
if (spotlightContent.searchField) {
|
||||
spotlightContent.searchField.forceActiveFocus();
|
||||
spotlightContent.searchField.selectAll();
|
||||
if (query)
|
||||
spotlightContent.searchField.cursorPosition = targetQuery.length;
|
||||
else
|
||||
spotlightContent.searchField.selectAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user