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 738975 - Add shortcuts for directly switching to desired input source
Add shortcuts for directly switching to desired input source
Status: RESOLVED WONTFIX
Product: gnome-shell
Classification: Core
Component: general
3.14.x
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-10-21 22:45 UTC by Aleksei Lissitsin
Modified: 2015-09-29 11:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Tentative patch for gnome-shell (1.25 KB, patch)
2014-10-21 23:48 UTC, Aleksei Lissitsin
none Details | Review
Patch for gnome-control-center (1.57 KB, patch)
2014-10-21 23:48 UTC, Aleksei Lissitsin
none Details | Review
Patch for gsettings-desktop-schemas (2.69 KB, patch)
2014-10-21 23:49 UTC, Aleksei Lissitsin
none Details | Review

Description Aleksei Lissitsin 2014-10-21 22:45:10 UTC
It is nice to be able to switch directly to any input source. E.g., CapsLock+1 to En, CapsLock+2 to De, and CapsLock+3 to Ru. 

It would be good if the user could specify shortcuts for this in Settings->Keyboard->Shortcuts->Typing.

One way to do this is to add

switch-to-input-source-#n (where #n is 1 to 10) keys to

gnome-control-center/panels/keyboard/01-input-sources.xml.in

and register keybinding events (this.inputSources[#n].activate()) in 

gnome-shell/js/ui/status/keyboard.js#InputSourceManager.

See also https://bugzilla.gnome.org/show_bug.cgi?id=736436 for relevant discussion.
Comment 1 Aleksei Lissitsin 2014-10-21 23:48:05 UTC
Created attachment 289092 [details] [review]
Tentative patch for gnome-shell
Comment 2 Aleksei Lissitsin 2014-10-21 23:48:49 UTC
Created attachment 289093 [details] [review]
Patch for gnome-control-center
Comment 3 Aleksei Lissitsin 2014-10-21 23:49:28 UTC
Created attachment 289094 [details] [review]
Patch for gsettings-desktop-schemas
Comment 4 Aleksei Lissitsin 2014-10-21 23:51:59 UTC
These are tentative patches. They are not tested at all. (But they could work.) In the worst case, they simply show a possible way to implement this.
Comment 5 Aleksei Lissitsin 2015-09-27 08:20:40 UTC
Hi guys!

Any chance this could get implemented?
Comment 6 Rui Matos 2015-09-29 11:24:07 UTC
Hi, thanks for the patches.

It seems to me that the use cases for this are so narrow that it's not worth it to add all these shortcuts (which would show up in gnome-control-center) . This might be a good fit for gnome-shell extension though.