From bf686b1c36163fb0038246a11aa17449b7aee783 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 23 Jun 2025 19:15:21 +1000 Subject: drawers: give back focus when close For launcher and session, give back focus to previously open one on close Also use execDetached for session buttons --- modules/launcher/Content.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/launcher/Content.qml') diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml index 486b67a..e8c95fd 100644 --- a/modules/launcher/Content.qml +++ b/modules/launcher/Content.qml @@ -107,7 +107,7 @@ Item { function onLauncherChanged(): void { if (root.visibilities.launcher) - search.forceActiveFocus(); + search.focus = true; else { search.text = ""; const current = list.currentList; @@ -115,6 +115,11 @@ Item { current.currentIndex = 0; } } + + function onSessionChanged(): void { + if (root.visibilities.launcher && !root.visibilities.session) + search.focus = true; + } } } -- cgit v1.2.3-freya