summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/controlcenter/Panes.qml21
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