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:
committed by
Jean-François Fortin Tam
parent
ab76cd59be
commit
bf922f173c
@@ -79,6 +79,11 @@ template $GcalWindow: Adw.ApplicationWindow {
|
|||||||
action: "action(win.new-event)";
|
action: "action(win.new-event)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Shortcut {
|
||||||
|
trigger: "<Control>w";
|
||||||
|
action: "action(window.close)";
|
||||||
|
}
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
trigger: "<Control>q";
|
trigger: "<Control>q";
|
||||||
action: "action(app.quit)";
|
action: "action(app.quit)";
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Adw.ShortcutsDialog shortcuts_dialog {
|
|||||||
|
|
||||||
Adw.ShortcutsItem {
|
Adw.ShortcutsItem {
|
||||||
title: C_("shortcut dialog", "Close Window");
|
title: C_("shortcut dialog", "Close Window");
|
||||||
accelerator: "<Primary>Q";
|
accelerator: "<Primary>Q <Primary>W";
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.ShortcutsItem {
|
Adw.ShortcutsItem {
|
||||||
|
|||||||
Reference in New Issue
Block a user