diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-16 09:29:52 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-16 09:29:52 -0500 |
| commit | d3124c34ace89443558b629c2178969001038d7d (patch) | |
| tree | 9174b870294fac104ecd860b0aaaa38081e4be63 /modules | |
| parent | controlcenter: wallpaper selector now spacing scale aware (diff) | |
| download | caelestia-shell-d3124c34ace89443558b629c2178969001038d7d.tar.gz caelestia-shell-d3124c34ace89443558b629c2178969001038d7d.tar.bz2 caelestia-shell-d3124c34ace89443558b629c2178969001038d7d.zip | |
controlcenter: slider input focus on pane change or click outside of text area
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/controlcenter/Panes.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml index 77b2fd2..5238624 100644 --- a/modules/controlcenter/Panes.qml +++ b/modules/controlcenter/Panes.qml @@ -20,6 +20,27 @@ ClippingRectangle { color: "transparent" clip: true + focus: false + activeFocusOnTab: false + + // Clear focus when clicking anywhere in the panes area + MouseArea { + anchors.fill: parent + z: -1 + onPressed: function(mouse) { + root.focus = true; + mouse.accepted = false; + } + } + + // Clear focus when switching panes + Connections { + target: root.session + + function onActiveIndexChanged(): void { + root.focus = true; + } + } ColumnLayout { id: layout |