• shuchen@chromium.org's avatar
    Adds the legacy KeyboardEvent.keyCode attribute for extension IMEs. · f169c3e5
    shuchen@chromium.org authored
        
    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
    
    Review URL: https://codereview.chromium.org/346513003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278771 0039d316-1c4b-4281-b951-d872f2087c98
    f169c3e5
input_ime.json 24.8 KB