Browse Source

Revert "qml: ElDialog titlebar click moves focus, hack for android to remove onscreen keyboard"

This reverts commit f0f320b119.
master
Sander van Grieken 3 years ago
parent
commit
c690c9c1be
  1. 19
      electrum/gui/qml/components/controls/ElDialog.qml

19
electrum/gui/qml/components/controls/ElDialog.qml

@ -29,21 +29,7 @@ Dialog {
} }
} }
header: Item { header: ColumnLayout {
implicitWidth: rootLayout.implicitWidth
implicitHeight: rootLayout.implicitHeight
MouseArea {
anchors.fill: parent
onClicked: {
// hack to allow titlebar click to remove on screen keyboard by
// moving focus to label
titleLabel.forceActiveFocus()
}
}
ColumnLayout {
id: rootLayout
spacing: 0 spacing: 0
RowLayout { RowLayout {
@ -60,7 +46,6 @@ Dialog {
} }
Label { Label {
id: titleLabel
text: title text: title
elide: Label.ElideRight elide: Label.ElideRight
Layout.fillWidth: true Layout.fillWidth: true
@ -81,5 +66,5 @@ Dialog {
color: Qt.rgba(0,0,0,0.5) color: Qt.rgba(0,0,0,0.5)
} }
} }
}
} }

Loading…
Cancel
Save