summaryrefslogtreecommitdiff
path: root/modules/launcher/Content.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/launcher/Content.qml')
-rw-r--r--modules/launcher/Content.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml
index 81222b7..6784b0e 100644
--- a/modules/launcher/Content.qml
+++ b/modules/launcher/Content.qml
@@ -37,6 +37,7 @@ Item {
padding: root.padding
search: search.text
+ launcher: root.launcher
}
EmptyIndicator {
@@ -73,6 +74,9 @@ Item {
}
}
+ Keys.onUpPressed: list.decrementCurrentIndex()
+ Keys.onDownPressed: list.incrementCurrentIndex()
+
Keys.onEscapePressed: root.launcher.launcherVisible = false
Connections {
@@ -81,8 +85,10 @@ Item {
function onLauncherVisibleChanged(): void {
if (root.launcher.launcherVisible)
search.forceActiveFocus();
- else
+ else {
search.text = "";
+ list.currentIndex = 0;
+ }
}
}
}