DescriptionAdds the legacy KeyboardEvent.keyCode attribute for extension IMEs.
The main usage of the keyCode attribute is to supports sending correct
soft key events. On the on-screen keyboard, each key should have the
keyCode attached, e.g. the key on the right side of TAB key, in US
keyboard layout, it has key:'q',code:'KeyQ',keyCode:0x51; while in FR
keyboard layout, it has key:'a',code:'KeyQ',keyCode:0x41.
Another example is for UK extended keyboard layout, the '#' key (at the
backslash key location), it has key:'#',code:'BackSlash',keyCode:0xDE;
while for US keyboard, it has key:'\\',code:'BackSlash',keyCode:0xDC.
A real case that this cl will fix is on FR on-screen keyboard, pressing
Ctrl+A will trigger Ctrl+Q shortcut.
BUG=355261
TEST=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278771
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 2
Patch Set 4 : make keyCode attribute optional, and fix tests. #
Total comments: 2
Patch Set 5 : nits. #Patch Set 6 : rebased. #
Messages
Total messages: 13 (0 generated)
|