[gnome-shell] Add the new switch-input-source keybinding



commit 88a9b7648c5dcce86ff769f195b13f2481e838d8
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Dec 12 09:41:26 2012 +0100

    Add the new switch-input-source keybinding
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682315

 data/50-gnome-shell-typing.xml.in      |   15 +++++++++++++++
 data/Makefile.am                       |    1 +
 data/org.gnome.shell.gschema.xml.in.in |   10 ++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/data/50-gnome-shell-typing.xml.in b/data/50-gnome-shell-typing.xml.in
new file mode 100644
index 0000000..7afd4c5
--- /dev/null
+++ b/data/50-gnome-shell-typing.xml.in
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<KeyListEntries schema="org.gnome.shell.keybindings"
+                group="system"
+                _name="Typing"
+                wm_name="GNOME Shell"
+                package="gnome-shell">
+
+  <KeyListEntry name="switch-input-source"
+                _description="Switch to next source"/>
+
+  <KeyListEntry name="switch-input-source-backward"
+                _description="Switch to previous source"/>
+
+</KeyListEntries>
+
diff --git a/data/Makefile.am b/data/Makefile.am
index f3e90b0..be6deef 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -54,6 +54,7 @@ keysdir = @GNOME_KEYBINDINGS_KEYSDIR@
 keys_in_files =					\
 	50-gnome-shell-screenshot.xml.in	\
 	50-gnome-shell-system.xml.in		\
+	50-gnome-shell-typing.xml.in		\
 	$(NULL)
 keys_DATA = $(keys_in_files:.xml.in=.xml)
 
diff --git a/data/org.gnome.shell.gschema.xml.in.in b/data/org.gnome.shell.gschema.xml.in.in
index 24af093..313aea0 100644
--- a/data/org.gnome.shell.gschema.xml.in.in
+++ b/data/org.gnome.shell.gschema.xml.in.in
@@ -135,6 +135,16 @@ value here is from the GsmPresenceStatus enumeration.</_summary>
         Keybinding to start/stop the builtin screen recorder.
       </_description>
     </key>
+    <key name="switch-input-source" type="as">
+      <default>["&lt;Super&gt;space"]</default>
+      <_summary>Switch input source</_summary>
+      <_description>Binding to select the next input source</_description>
+    </key>
+    <key name="switch-input-source-backward" type="as">
+      <default>[]</default>
+      <_summary>Switch input source backward</_summary>
+      <_description>Binding to select the previous input source</_description>
+    </key>
   </schema>
 
   <schema id="org.gnome.shell.keyboard" path="/org/gnome/shell/keyboard/"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]