DescriptionDon't kill key events even when it's VKEY_UNKNOWN.
We're killing key events with key_code = VKEY_UNKNOWN in WindowTargeter, but it's wrong. There exists not a few hardware keys used to type characters (such as ä, í) whose key code falls into VKEY_UNKNOWN. We should not ignore key events just because their key code falls into VKEY_UNKNOWN. VKEY_UNKNOWN means just that we failed to map a key code to our small set of keys. Even if it's not a well-known standard key, it's a key.
This CL allows all the key events which have a character be despatched to the target window regardless of key code.
If we need to ignore some special keys, we should explicitly list them up.
NOTE against Issue 119407 ( https://codereview.chromium.org/9835032 )
XF86XK_PowerOff no longer converts into VKEY_UNKNOWN, it converts into VKEY_POWER (=0x98).
BUG=363037
TEST=Manually done with a UK keyboard, which has keycode 94. Or with HHKB with running xmodmap -e 'keycode 100 = adiaeresis Adiaeresis'.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270347
Patch Set 1 #Patch Set 2 : Synced. #Patch Set 3 : Changed not to pass keycode=0 && char=0 events to renderers. Also added testcases. #Patch Set 4 : Synced. #
Messages
Total messages: 9 (0 generated)
|