Merge PR #277: Work around QtVirtualKeyboard layering issues
This commit is contained in:
commit
f020e0d2f3
@ -415,8 +415,14 @@ ApplicationWindow {
|
||||
}
|
||||
|
||||
|
||||
// NOTE: If using a Dialog, make sure closePolicy does not contain Dialog.CloseOnPressOutside
|
||||
// or the virtual keyboard will close when pressing it...
|
||||
|
||||
// https://bugreports.qt.io/browse/QTBUG-56918
|
||||
KeyboardLoader {
|
||||
id: keyboardRect
|
||||
parent: app.overlay
|
||||
z: 1
|
||||
anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,6 +14,13 @@ Dialog {
|
||||
|
||||
standardButtons: Dialog.Ok
|
||||
|
||||
MouseArea {
|
||||
parent: app.overlay
|
||||
anchors.fill: parent
|
||||
z: -1
|
||||
onPressed: mouse.accepted = true
|
||||
}
|
||||
|
||||
header: Item {
|
||||
implicitHeight: headerRow.height + app.margins * 2
|
||||
implicitWidth: parent.width
|
||||
|
||||
@ -119,6 +119,9 @@ Page {
|
||||
MeaDialog {
|
||||
title: qsTr("Groups for %1").arg(root.device.name)
|
||||
headerIcon: "../images/view-grid-symbolic.svg"
|
||||
// NOTE: If CloseOnPressOutside is active (default) it will break the QtVirtualKeyboard
|
||||
// https://bugreports.qt.io/browse/QTBUG-56918
|
||||
closePolicy: Popup.CloseOnEscape
|
||||
|
||||
RowLayout {
|
||||
Layout.leftMargin: app.margins
|
||||
|
||||
@ -206,6 +206,9 @@ Page {
|
||||
y: app.margins
|
||||
|
||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||
// NOTE: If CloseOnPressOutside is active (default) it will break the QtVirtualKeyboard
|
||||
// https://bugreports.qt.io/browse/QTBUG-56918
|
||||
closePolicy: Popup.CloseOnEscape
|
||||
|
||||
TextField {
|
||||
id: textField
|
||||
|
||||
Reference in New Issue
Block a user