aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-17 10:21:18 +0200
committerDanilo M. <danix@danix.xyz>2026-10-17 10:21:18 +0200
commitfb7761bda4f7471118ae94cb8c3bebd8d4f26a0b (patch)
tree2c84ffe256594d19f009b06988aebdbb00c47552
parent1ad76fa3062ee040de009789a6d767872771fca9 (diff)
downloadquickshell-fb7761bda4f7471118ae94cb8c3bebd8d4f26a0b.tar.gz
quickshell-fb7761bda4f7471118ae94cb8c3bebd8d4f26a0b.zip
settings: Ctrl+Q closes the window
A window-wide Shortcut rather than a Keys handler, so it works with the focus in a field, where Escape is taken first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--desktop/Settings.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/Settings.qml b/desktop/Settings.qml
index 986ec26..e8895a4 100644
--- a/desktop/Settings.qml
+++ b/desktop/Settings.qml
@@ -93,6 +93,13 @@ Scope {
color: Theme.base
onClosed: root.close()
+ // Window-wide, so it works with the focus in any field, unlike
+ // Escape, which a field may take first.
+ Shortcut {
+ sequence: "Ctrl+Q"
+ onActivated: root.close()
+ }
+
Item {
anchors.fill: parent
focus: true