mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-14 17:52:10 -04:00
feat(danklauncher): add launcher history (#2086)
* remember last search query * add launcherLastQuery SessionSpec * add rememberLastQuery option * Add remember last query for appdrawer * Add query history sessiondata * Complete and cleanup * Discard changes to quickshell/Modules/Settings/LauncherTab.qml * Cleanup logic * Add rememberLastQuery option * Add rememberLastQuery option description * Move setLauncherLastQuery above validation * Fix logic bug with empty query
This commit is contained in:
@@ -149,10 +149,18 @@ FocusScope {
|
||||
event.accepted = false;
|
||||
return;
|
||||
case Qt.Key_Down:
|
||||
controller.selectNext();
|
||||
if (hasCtrl) {
|
||||
controller.navigateHistory("down");
|
||||
} else {
|
||||
controller.selectNext();
|
||||
}
|
||||
return;
|
||||
case Qt.Key_Up:
|
||||
controller.selectPrevious();
|
||||
if (hasCtrl) {
|
||||
controller.navigateHistory("up");
|
||||
} else {
|
||||
controller.selectPrevious();
|
||||
}
|
||||
return;
|
||||
case Qt.Key_PageDown:
|
||||
controller.selectPageDown(8);
|
||||
@@ -763,6 +771,7 @@ FocusScope {
|
||||
}
|
||||
function onSearchQueryRequested(query) {
|
||||
searchField.text = query;
|
||||
searchField.cursorPosition = query.length;
|
||||
}
|
||||
function onModeChanged() {
|
||||
extFilterField.text = "";
|
||||
|
||||
Reference in New Issue
Block a user