qml: pressing "Esc" on desktop to ~simulate "back" button
@ -23,7 +23,7 @@ ElDialog {
focus: true
closePolicy: canCancel ? Popup.CloseOnEscape | Popup.CloseOnPressOutside : Popup.NoAutoClose
closePolicy: canCancel ? Popup.CloseOnPressOutside : Popup.NoAutoClose
property bool canCancel: true
@ -19,7 +19,7 @@ Dialog {
}
closePolicy: allowClose
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
? Popup.CloseOnPressOutside
: Popup.NoAutoClose
onOpenedChanged: {
@ -439,6 +439,14 @@ ApplicationWindow
Shortcut {
context: Qt.ApplicationShortcut
sequence: "Esc"
onActivated: {
close()
Connections {
target: Daemon
function onWalletRequiresPassword(name, path) {