controlcenter: slider input focus on pane change or click outside of text area
This commit is contained in:
parent
95615e64b7
commit
d3124c34ac
1 changed files with 21 additions and 0 deletions
|
|
@ -20,6 +20,27 @@ ClippingRectangle {
|
||||||
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
clip: true
|
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 {
|
ColumnLayout {
|
||||||
id: layout
|
id: layout
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue