GNOME Bugzilla – Bug 738975
Add shortcuts for directly switching to desired input source
Last modified: 2015-09-29 11:24:07 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.
Created attachment 289092 [details] [review] Tentative patch for gnome-shell
Created attachment 289093 [details] [review] Patch for gnome-control-center
Created attachment 289094 [details] [review] Patch for gsettings-desktop-schemas
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.
Hi guys! Any chance this could get implemented?
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.