Unrecognized keys on Korean keyboard (libsdl2-2.0-0:amd64 / 2.0.0+dfsg1-2)

Hello,

I’m reporting 2 unknown keys in SDL2 as suggested by the following console
messages:

The key you just pressed is not recognized by SDL. To help get this fixed,
please report this to the SDL mailing list X11 KeyCode 130
(122), X11 KeySym 0xFF31 (Hangul).

The key you just pressed is not recognized by SDL. To help get this fixed,
please report this to the SDL mailing list X11 KeyCode 131
(123), X11 KeySym 0xFF34 (Hangul_Hanja).

I’m running Ubuntu saucy x86_64 (at least for SDL2; otherwise it’s quite
mixed). I have ibus running with Korean/Hangul and Japanese input methods.
I have a Korean keyboard. The layout in basically US QWERTY, but with all
A-Z keys doubled with Hangul characters (the Korean aplhabet), and these 2
additional keys. The “Hangul” key is just right of space bar, to switch
between roman characters (A-Z) and Hangul ones (Korean ones). The
"Hangul_Hanja" key is just left of space bar, and… well… I’m not Korean
so I’m not quite sure what is the “typical” use case. Hanja is supposed to
be the Korean ideograms. But on my system it doesn’t do anything.

Of course, because the keys are not recognized, the switch between roman
characters and Hangul ones in applications using SDL2 does not work. It
works well however in other apps (e.g. firefox). I also tried direct X11
access (Xlib+XIM) and it works.

I tried to find a bug report with Google but couldn’t find anything. Sorry
if this was already reported and I missed it.

J?r?me

Hello,
I got the same error message while using scrcpy.
I am a Korean, and I know what those keys are for.

“Hangul” is a keycode for changing input languages. Typically, it changes between Korean and English. “Hangul_Hanja” key shows up a dialog to change Korean letter to Chinese letter. For example, when I type “가”, and press Hangul_Hanja key, then it shows up “1. 可, 2. 家, 3.加…”. Hangul_Hanja key is also used to make some special characters like ☆■. With one of consonants typed, such as ㄱ,ㄴ,ㄷ,ㄹ,ㅁ, Hangul_Hanja key shows up a dialog to choose special characters mapped with each consonants.

Those 2 keycodes are recognizable only when the keyboard layout is set to Korean layouts or when they are explicitly mapped using some of key mapping methods like xmodmap.

The location of those 2 keys are vary, but in most cases Hangul replaces Right Alt, and Hangul_hanja replaces Right Ctrl.