Bug 494445 - ibus-hangul missing Hangul Han/En mode (and Alt_R+release hotkey)
ibus-hangul missing Hangul Han/En mode (and Alt_R+release hotkey)
Product: Fedora
Classification: Fedora
Component: ibus-hangul (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Peng Huang
Fedora Extras Quality Assurance
Depends On: 495431
Blocks: F11Target 481098
  Show dependency treegraph
Reported: 2009-04-06 17:34 EDT by Warren Togami
Modified: 2009-04-14 20:10 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-04-14 20:10:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Warren Togami 2009-04-06 17:34:01 EDT

Currently ibus-hangul does nothing if you press the Han/En button (Korean layout) or right-Alt.  Users expect this to flip between Hangul and English input mode without dismissing the language bar.

This is arguably the most used Korean button, so proposing for F11Blocker.
Comment 1 Jens Petersen 2009-04-09 01:55:40 EDT
I think we can add the Han/En as a global hotkey for f11.

Hopefully we do more for f12.

Warren, can you find out the keysym?
Comment 2 Jens Petersen 2009-04-09 01:57:13 EDT
Though that would just duplicate the Hangul key hotkey?
Comment 3 Warren Togami 2009-04-09 16:29:11 EDT
Adding "Alt_R" to the list of ibus global hotkeys makes this work, although you need to restart ibus for it to take effect.

Hangul button, KO layout, KO keyboard:
    state 0x10, keycode 130 (keysym 0xff31, Hangul), same_screen YES,
Alt_R button,  KO layout, KO keyboard:
    state 0x18, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
Alt_R button, US layout,  US keyboard:
    state 0x10, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
Alt_R button, JP layout,  JP keyboard:
    state 0x10, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,

Just do it.  Not ideal, but it will work.
Comment 4 Peng Huang 2009-04-13 04:02:23 EDT
Using Alt_R press key event as trigger will conflict some menu keyboard shortcut. Like: Alt-F for file menu. We can only use Alt_R release key event (Release + Alt_R)as the trigger. But it still has a problem.
Please consider the below case.
When user press Alt+F, ibus will receive events like Alt_R press, F press, F release, Alt release.  In this case, we should consider the last Alt release event as trigger hotkey. IBus use below logic to check this case.

if (modifier & ReleaseMask) and (keyval == previous_keyval == Key_XX) then
    do trigger

This logic works for most keys with release modifier except the Alt. When alt is pressed, the follow key events will not be sent to ibus. (For Alt+F, ibus only get two event, Alt_R press and Alt_R release, The F key event s are stolen ). I guess the gtk filters key events with Alt modifier. So ibus can not handle it correctly.
Comment 5 Warren Togami 2009-04-14 01:12:42 EDT
The bug where Alt + Release isn't detected is filed separately in Bug #495431.
Comment 6 Jens Petersen 2009-04-14 01:36:19 EDT
I am moving this to F11Target since the En mode won't land in time for F11 freeze.
Comment 7 Peng Huang 2009-04-14 20:10:13 EDT
Fixed in ibus-1_1_0_20090413-3_fc11

Note You need to log in before you can comment on or make changes to this bug.