From 587c3a7bc90118d3cf235307a07a153f52dd3d88 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 2 May 2025 23:35:22 +1000 Subject: feat: launcher keyboard nav Using currentitem and highlight Also fix not closing launcher when clicking app Apps service use only one process --- modules/launcher/Content.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/launcher/Content.qml') 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; + } } } } -- cgit v1.2.3-freya