diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-23 19:15:21 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-23 19:15:21 +1000 |
| commit | bf686b1c36163fb0038246a11aa17449b7aee783 (patch) | |
| tree | 7468e2e3904ebc12f0e0bc1cdeb5fa5a9bc9eefc /modules/launcher/Content.qml | |
| parent | systemusage: fix gpu temp (diff) | |
| download | caelestia-shell-bf686b1c36163fb0038246a11aa17449b7aee783.tar.gz caelestia-shell-bf686b1c36163fb0038246a11aa17449b7aee783.tar.bz2 caelestia-shell-bf686b1c36163fb0038246a11aa17449b7aee783.zip | |
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
Diffstat (limited to 'modules/launcher/Content.qml')
| -rw-r--r-- | modules/launcher/Content.qml | 7 |
1 files changed, 6 insertions, 1 deletions
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; + } } } |