[gnome-shell] Add a toggle-overview keybinding
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Add a toggle-overview keybinding
- Date: Fri, 19 Apr 2013 02:48:08 +0000 (UTC)
commit 929e066506079600e483bf6a99061c5a48c9d1dd
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 17 19:26:06 2013 -0400
Add a toggle-overview keybinding
This is a new, regular keybinding for going to the overview.
The default binding is Super-S, which goes well with Super-A
for going to the application grid.
This is separate from the existing panel-main-menu keybinding,
so that we can keep Alt-F1 opening the main menu in classic mode.
https://bugzilla.gnome.org/show_bug.cgi?id=698251
data/50-gnome-shell-system.xml.in | 3 +++
data/org.gnome.shell.gschema.xml.in.in | 7 +++++++
js/ui/viewSelector.js | 8 ++++++++
3 files changed, 18 insertions(+)
---
diff --git a/data/50-gnome-shell-system.xml.in b/data/50-gnome-shell-system.xml.in
index 92858c5..3e8c6f8 100644
--- a/data/50-gnome-shell-system.xml.in
+++ b/data/50-gnome-shell-system.xml.in
@@ -11,6 +11,9 @@
<KeyListEntry name="focus-active-notification"
_description="Focus the active notification"/>
+ <KeyListEntry name="toggle-overview"
+ _description="Show the overview"/>
+
<KeyListEntry name="toggle-application-view"
_description="Show all applications"/>
diff --git a/data/org.gnome.shell.gschema.xml.in.in b/data/org.gnome.shell.gschema.xml.in.in
index bacb6b1..7aae0ae 100644
--- a/data/org.gnome.shell.gschema.xml.in.in
+++ b/data/org.gnome.shell.gschema.xml.in.in
@@ -117,6 +117,13 @@ value here is from the GsmPresenceStatus enumeration.</_summary>
Overview.
</_description>
</key>
+ <key name="toggle-overview" type="as">
+ <default>["<Super>s"]</default>
+ <_summary>Keybinding to open the overview</_summary>
+ <_description>
+ Keybinding to open the Activities Overview.
+ </_description>
+ </key>
<key name="toggle-message-tray" type="as">
<default>["<Super>m"]</default>
<_summary>Keybinding to toggle the visibility of the message tray</_summary>
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 0fd242d..639acf3 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -150,6 +150,14 @@ const ViewSelector = new Lang.Class({
Shell.KeyBindingMode.NORMAL |
Shell.KeyBindingMode.OVERVIEW,
Lang.bind(this, this._toggleAppsPage));
+
+ Main.wm.addKeybinding('toggle-overview',
+ new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ Meta.KeyBindingFlags.NONE,
+ Shell.KeyBindingMode.NORMAL |
+ Shell.KeyBindingMode.OVERVIEW,
+ Lang.bind(Main.overview, Main.overview.toggle));
+
},
_toggleAppsPage: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]