After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732293 - Add default binding for switch-input-source-backward
Add default binding for switch-input-source-backward
Status: RESOLVED FIXED
Product: gsettings-desktop-schemas
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gsettings-desktop-schemas-maint
gsettings-desktop-schemas-maint
Depends on:
Blocks: 731618 732385
 
 
Reported: 2014-06-26 20:15 UTC by Christophe Fergeau
Modified: 2014-08-17 17:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add default binding for switch-input-source-backward (1.56 KB, patch)
2014-06-26 20:16 UTC, Christophe Fergeau
needs-work Details | Review
Use CDATA to encode switch-input-source default binding (1.16 KB, patch)
2014-06-28 11:56 UTC, Christophe Fergeau
committed Details | Review
Add default binding for {switch,cycle}.*-backward bindings (3.68 KB, patch)
2014-06-28 11:56 UTC, Christophe Fergeau
committed Details | Review

Description Christophe Fergeau 2014-06-26 20:15:59 UTC
Currently mutter/gnome-shell make sure switch-input-source-backward
shortcut is set to <Shift> + switch-input-source shortcut, but this
is being moved to gnome-control-center, which needs the default value to
be set.
Comment 1 Christophe Fergeau 2014-06-26 20:16:23 UTC
Created attachment 279334 [details] [review]
Add default binding for switch-input-source-backward
Comment 2 Bastien Nocera 2014-06-27 08:37:56 UTC
Review of attachment 279334 [details] [review]:

The commit message mentions mutter, but I can't find any mentions of that keybinding in mutter, just gnome-shell.

::: schemas/org.gnome.desktop.wm.keybindings.gschema.xml.in.in
@@ +333,3 @@
     </key>
     <key name="switch-input-source" type="as">
+      <default><![CDATA[['<Super>space']]]></default>

I'd prefer if the CDATA change was made separately.
Comment 3 Christophe Fergeau 2014-06-27 20:16:14 UTC
Review of attachment 279334 [details] [review]:

I mentioned mutter in the log because of https://git.gnome.org/browse/mutter/tree/src/core/keybindings.c#n624
switch-input-source has the META_KEY_BINDING_REVERSES flag set, so even though switch-input-source-backwards has no key binding set, one is implicitly created for the reverse action.

::: schemas/org.gnome.desktop.wm.keybindings.gschema.xml.in.in
@@ +333,3 @@
     </key>
     <key name="switch-input-source" type="as">
+      <default><![CDATA[['<Super>space']]]></default>

Sure, will split.
Comment 4 Christophe Fergeau 2014-06-28 11:56:23 UTC
Created attachment 279473 [details] [review]
Use CDATA to encode switch-input-source default binding

Currently entities are being used, but CDATA is more readable and more
consistent with the rest of the file.
Comment 5 Christophe Fergeau 2014-06-28 11:56:37 UTC
Created attachment 279474 [details] [review]
Add default binding for {switch,cycle}.*-backward bindings

Currently mutter/gnome-shell make sure that the binding for a -backward
action is the same binding as for the non-backward action with the
<Shift> modifier added.
This logic is being moved to gnome-control-center for more flexibility
(the keybinding panel will suggest to set the -backward binding to
<Shift>+non-backward-binding).
Since mutter/gnome-shell will no longer be automatically creating these
<Shift> backward keybindings, they need to be added as default values
to the -backward gsettings keys.
Comment 6 Bastien Nocera 2014-07-01 15:17:52 UTC
Review of attachment 279473 [details] [review]:

Looks good.
Comment 7 Bastien Nocera 2014-07-01 15:18:42 UTC
Review of attachment 279474 [details] [review]:

Looks good as well.
Comment 8 Florian Müllner 2014-07-01 16:09:45 UTC
Review of attachment 279474 [details] [review]:

Looks good to me as well, though the cycle-foo bindings haven't worked properly for a long time and are now pretty much completely broken - so I wonder if it wouldn't make more sense to remove the default bindings rather than adding additional -backward ones ...
Comment 9 Christophe Fergeau 2014-08-17 17:29:29 UTC
Pushed as a6f9ec2f4e6a4a59a8bd056c2356f04d381d3549 and 90438192bd1aaac1fef4b4153dabf2ca42b28cfb