mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Unfocus field and hide keyboard when click in blank part of dialog
This commit is contained in:
parent
52137cb3c1
commit
8663455d01
2 changed files with 9 additions and 2 deletions
|
@ -109,8 +109,13 @@ Column {
|
|||
}
|
||||
|
||||
MouseArea {
|
||||
// Events are propogated so that any active control is defocussed.
|
||||
anchors.fill: parent
|
||||
onClicked: toggleCollapsed()
|
||||
propagateComposedEvents: true
|
||||
onClicked: {
|
||||
toggleCollapsed();
|
||||
mouse.accepted = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,9 @@ Fadable {
|
|||
hoverEnabled: true
|
||||
acceptedButtons: Qt.AllButtons
|
||||
enabled: window.visible
|
||||
onClicked: {}
|
||||
onClicked: {
|
||||
frame.forceActiveFocus(); // Defocus any current field so that the keyboard gets hidden.
|
||||
}
|
||||
onDoubleClicked: {}
|
||||
onPressAndHold: {}
|
||||
onReleased: {}
|
||||
|
|
Loading…
Reference in a new issue