diff options
Diffstat (limited to 'desktop/modules/vm/VmPage.qml')
| -rw-r--r-- | desktop/modules/vm/VmPage.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/modules/vm/VmPage.qml b/desktop/modules/vm/VmPage.qml index 5cb4dc7..9fca5f5 100644 --- a/desktop/modules/vm/VmPage.qml +++ b/desktop/modules/vm/VmPage.qml @@ -318,6 +318,10 @@ Column { focus: needsTyping Component.onCompleted: if (needsTyping) forceActiveFocus() + // Escape cancels the pending confirmation rather than + // navigating away from the page; this handler consumes the key. + Keys.onEscapePressed: { page.confirming = null; page.typed = ""; } + Rectangle { anchors.fill: parent anchors.margins: -6 |
