aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/vm/VmPage.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-14 12:44:09 +0200
committerDanilo M. <danix@danix.xyz>2026-09-14 12:44:09 +0200
commit60eae607ab75988fc441bb4d87ef790175009572 (patch)
treeb200101e43856d0cf2629b4b3d9564f54ec10be6 /desktop/modules/vm/VmPage.qml
parent901e7d83f8af3defe2c602daad98fd3c67e1dd7c (diff)
downloadquickshell-60eae607ab75988fc441bb4d87ef790175009572.tar.gz
quickshell-60eae607ab75988fc441bb4d87ef790175009572.zip
fix(desktop): honest alwaysActive docs and working Escape in confirm
Diffstat (limited to 'desktop/modules/vm/VmPage.qml')
-rw-r--r--desktop/modules/vm/VmPage.qml4
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