From d3124c34ace89443558b629c2178969001038d7d Mon Sep 17 00:00:00 2001 From: ATMDA Date: Sun, 16 Nov 2025 09:29:52 -0500 Subject: controlcenter: slider input focus on pane change or click outside of text area --- modules/controlcenter/Panes.qml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'modules') 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 -- cgit v1.2.3-freya