From b2e2ed2ac5ef363ab4dc290a579288901f853094 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 2 May 2025 22:37:14 +1000 Subject: launcher: auto grab focus + clear on close --- 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 4aafc3f..d60991f 100644 --- a/modules/launcher/Content.qml +++ b/modules/launcher/Content.qml @@ -131,7 +131,13 @@ Item { } } - // TODO: key press grab focus + close on esc anywhere + onVisibleChanged: { + if (visible) + forceActiveFocus(); + else + text = ""; + } + Keys.onEscapePressed: root.launcher.launcherVisible = false } -- cgit v1.2.3-freya