1
0

Merge pull request #8273 from SomberNight/202303_qml_esc_shortcut

qml: pressing "Esc" on desktop to ~simulate "back" button
This commit is contained in:
ThomasV
2023-03-22 08:15:01 +01:00
committed by GitHub
3 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

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

View File

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