[gnome-builder] application: Add Ctrl+Q as shortcut for closing the current window
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] application: Add Ctrl+Q as shortcut for closing the current window
- Date: Thu, 18 Feb 2021 19:46:58 +0000 (UTC)
commit 0983b566f83087f5e7026968d501b42865132d45
Author: vanadiae <vanadiae35 gmail com>
Date: Thu Feb 18 18:38:46 2021 +0100
application: Add Ctrl+Q as shortcut for closing the current window
All apps have this shortcut and it’s also in the HIG.
src/libide/gui/ide-application-shortcuts.c | 4 ++++
src/plugins/sublime/keybindings/sublime.css | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-application-shortcuts.c b/src/libide/gui/ide-application-shortcuts.c
index 3ffdd8991..d52fdbe32 100644
--- a/src/libide/gui/ide-application-shortcuts.c
+++ b/src/libide/gui/ide-application-shortcuts.c
@@ -72,4 +72,8 @@ _ide_application_init_shortcuts (IdeApplication *self)
"app.shortcuts",
"<Primary>question",
DZL_SHORTCUT_PHASE_GLOBAL);
+ dzl_shortcut_theme_set_accel_for_action (theme,
+ "win.close",
+ "<Primary>q",
+ DZL_SHORTCUT_PHASE_GLOBAL);
}
diff --git a/src/plugins/sublime/keybindings/sublime.css b/src/plugins/sublime/keybindings/sublime.css
index 244094b65..464738999 100644
--- a/src/plugins/sublime/keybindings/sublime.css
+++ b/src/plugins/sublime/keybindings/sublime.css
@@ -7,7 +7,6 @@
bind "<ctrl>s" { "action" ("editor-page", "save", "") };
bind "<ctrl><shift>s" { "action" ("editor-page", "save-as", "") };
bind "<ctrl>w" { "action" ("frame", "close-page", "") };
- bind "<ctrl>q" { "action" ("app", "quit", "") };
bind "<ctrl>z" { "clear-count" ()
"clear-selection" ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]