Browse Source

Revert "qml: pressing "Esc" on desktop to ~simulate "back" button"

This reverts commit 7f7ee8d82f.

This commit caused a regression with the android back button not closing a dialog.

reproduce:
1. from the main window, press receive.
2. in the request details window, press Create request.
3. in the receive payment dialog, press Copy
4. observe dialog cannot be closed by back button
master
Sander van Grieken 3 years ago
parent
commit
e7cc2c5a63
  1. 2
      electrum/gui/qml/components/Pin.qml
  2. 2
      electrum/gui/qml/components/controls/ElDialog.qml
  3. 8
      electrum/gui/qml/components/main.qml

2
electrum/gui/qml/components/Pin.qml

@ -23,7 +23,7 @@ ElDialog {
focus: true
closePolicy: canCancel ? Popup.CloseOnPressOutside : Popup.NoAutoClose
closePolicy: canCancel ? Popup.CloseOnEscape | Popup.CloseOnPressOutside : Popup.NoAutoClose
property bool canCancel: true

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

@ -19,7 +19,7 @@ Dialog {
}
closePolicy: allowClose
? Popup.CloseOnPressOutside
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
: Popup.NoAutoClose
onOpenedChanged: {

8
electrum/gui/qml/components/main.qml

@ -439,14 +439,6 @@ ApplicationWindow
}
}
Shortcut {
context: Qt.ApplicationShortcut
sequence: "Esc"
onActivated: {
close()
}
}
Connections {
target: Daemon
function onWalletRequiresPassword(name, path) {

Loading…
Cancel
Save