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 729419 - Allow input of Hangul and Modifier+space shortcuts
Allow input of Hangul and Modifier+space shortcuts
Status: RESOLVED INVALID
Product: mutter
Classification: Core
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2014-05-02 18:10 UTC by Changwoo Ryu
Modified: 2014-08-10 06:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow Hangul and Shift+Space shortcuts (1.13 KB, patch)
2014-05-02 18:12 UTC, Changwoo Ryu
rejected Details | Review

Description Changwoo Ryu 2014-05-02 18:10:12 UTC
Hangul and Shift+Space are conventional key combinations for Korean keyboard toggle(bug 693395). But mutter doesn't accept them as input-source-switch. Mutter prevents them explicitly but the prevention code is for cycle-windows shortcuts(bug 329676).
Comment 1 Changwoo Ryu 2014-05-02 18:12:45 UTC
Created attachment 275689 [details] [review]
Allow Hangul and Shift+Space shortcuts
Comment 2 Florian Müllner 2014-06-26 21:39:34 UTC
Review of attachment 275689 [details] [review]:

::: src/core/prefs.c
@@ +1931,3 @@
           0 != keysym &&
+          ((META_VIRTUAL_SHIFT_MASK == mods && GDK_KEY_space != keysym) ||
+           (0 == mods && GDK_KEY_Hangul != keysym)))

No. These restrictions exist for a reason, not to take away your favorite shortcuts:

 (1) for every reversable shortcut, an implicit second shortcut with an additional <shift>
     modifier is added, which reverses the direction (e.g. <alt>tab and <shift><alt>tab).
     As mentioned in bug 732296, I'd be fine with making the reversing optional and removing
     the restriction altogether, but special-casing one particular shortcut is not acceptable.

 (2) the popup we show for switcher shortcuts is shown until the primary modifier is released,
     so that you can cycle through all elements rather than just selecting the next one. This
     obviously won't work if the shortcut does not have any modifiers. Again, I'd be fine with
     a patch that lifts the restriction, for instance by using a timeout to allow the shortcut
     to be pressed again before hiding the popup (see also bug 705434), but not with special-casing
     just one particular shortcut.
Comment 3 Changwoo Ryu 2014-06-27 05:40:03 UTC
I know why such restriction exists. But to use the input source switch for Korean keyboard, this restriction conflicts with the Korean keyboard standard and the convention which have been used for decades. In Hangul toggle situation, users just toggle between Korean and Latin and don't need reverse-cycle feature or any popups. So this workaround is enough for making it work as users expect.

Maybe the best solution is to toggle Hangul in one input source. https://fedorahosted.org/i18n/ticket/26  But it requires some time to fix ibus.
Comment 4 Rui Matos 2014-06-27 08:36:01 UTC
(In reply to comment #2)
> Review of attachment 275689 [details] [review]:
> 
> ::: src/core/prefs.c
> @@ +1931,3 @@
>            0 != keysym &&
> +          ((META_VIRTUAL_SHIFT_MASK == mods && GDK_KEY_space != keysym) ||
> +           (0 == mods && GDK_KEY_Hangul != keysym)))
> 
> No. These restrictions exist for a reason, not to take away your favorite
> shortcuts:
> 
>  (1) for every reversable shortcut, an implicit second shortcut with an
> additional <shift>
>      modifier is added, which reverses the direction (e.g. <alt>tab and
> <shift><alt>tab).
>      As mentioned in bug 732296, I'd be fine with making the reversing optional
> and removing
>      the restriction altogether, but special-casing one particular shortcut is
> not acceptable.

Right, I was going to comment here along these lines after the patches in bug 732296 land.
Comment 5 Changwoo Ryu 2014-08-10 06:20:37 UTC
I think it's time to stop attempts to modify GNOME's input-source-switch for using it as Hangul toggle. Like ibus-anthy and ibus-skk, ibus-hangul will handle Hangul toggle by itself. Now the git version of ibus-hangul does it and works great.