window: Add Ctrl+W shortcut for closing the window

Add the common shortcut as per:
https://developer.gnome.org/hig/reference/keyboard.html#basic-shortcuts
This commit is contained in:
Maximiliano Sandoval
2026-01-16 16:42:22 -05:00
committed by Jean-François Fortin Tam
parent ab76cd59be
commit bf922f173c
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -79,6 +79,11 @@ template $GcalWindow: Adw.ApplicationWindow {
action: "action(win.new-event)";
}
Shortcut {
trigger: "<Control>w";
action: "action(window.close)";
}
Shortcut {
trigger: "<Control>q";
action: "action(app.quit)";
+1 -1
View File
@@ -32,7 +32,7 @@ Adw.ShortcutsDialog shortcuts_dialog {
Adw.ShortcutsItem {
title: C_("shortcut dialog", "Close Window");
accelerator: "<Primary>Q";
accelerator: "<Primary>Q <Primary>W";
}
Adw.ShortcutsItem {