Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions electrum/gui/qml/components/controls/ElDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ Dialog {
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
: Popup.NoAutoClose

TapHandler { // close keyboard when tapping on the empty background
parent: abstractdialog.background
onTapped: {
// Release input focus so tapping the same field opens the keyboard again.
abstractdialog.contentItem.forceActiveFocus(Qt.MouseFocusReason)
Qt.inputMethod.hide()
}
}

onOpenedChanged: {
if (opened) {
app.activeDialogs.push(abstractdialog)
Expand Down
4 changes: 2 additions & 2 deletions electrum/gui/qml/components/wizard/Wizard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ ElDialog {
return page
}

ColumnLayout {
anchors.fill: parent
// make layout contentItem so ElDialog TapHandler can focus on it and the Keys hook stays active
contentItem: ColumnLayout {
spacing: 0

// root Item in Wizard, capture back button here and delegate to main
Expand Down