Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Issue 346513003: Adds the legacy KeyboardEvent.keyCode attribute for extension IMEs. (Closed)

Created:
6 years, 6 months ago by Shu Chen
Modified:
6 years, 6 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adds 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -21 lines) Patch
M chrome/browser/chromeos/input_method/input_method_engine.cc View 1 2 3 4 5 4 chunks +21 lines, -21 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_engine_browsertests.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_engine_interface.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/input_ime.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Shu Chen
Can you please review this cl? kalman@ for API json file change. nona@ for other ...
6 years, 6 months ago (2014-06-19 14:09:01 UTC) #1
not at google - send to devlin
json lgtm https://codereview.chromium.org/346513003/diff/40001/chrome/common/extensions/api/input_ime.json File chrome/common/extensions/api/input_ime.json (right): https://codereview.chromium.org/346513003/diff/40001/chrome/common/extensions/api/input_ime.json#newcode21 chrome/common/extensions/api/input_ime.json:21: "keyCode": {"type": "integer", "description": "It holds system- ...
6 years, 6 months ago (2014-06-19 15:57:28 UTC) #2
Seigo Nonaka
lgtm lgtm with a nit. https://codereview.chromium.org/346513003/diff/60001/chrome/browser/chromeos/input_method/input_method_engine_interface.h File chrome/browser/chromeos/input_method/input_method_engine_interface.h (right): https://codereview.chromium.org/346513003/diff/60001/chrome/browser/chromeos/input_method/input_method_engine_interface.h#newcode12 chrome/browser/chromeos/input_method/input_method_engine_interface.h:12: #include "ui/events/keycodes/keyboard_codes.h" nit: Do ...
6 years, 6 months ago (2014-06-20 03:16:02 UTC) #3
Shu Chen
https://codereview.chromium.org/346513003/diff/40001/chrome/common/extensions/api/input_ime.json File chrome/common/extensions/api/input_ime.json (right): https://codereview.chromium.org/346513003/diff/40001/chrome/common/extensions/api/input_ime.json#newcode21 chrome/common/extensions/api/input_ime.json:21: "keyCode": {"type": "integer", "description": "It holds system- and implementation-dependent ...
6 years, 6 months ago (2014-06-20 06:11:58 UTC) #4
Shu Chen
The CQ bit was checked by shuchen@chromium.org
6 years, 6 months ago (2014-06-20 06:12:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shuchen@chromium.org/346513003/80001
6 years, 6 months ago (2014-06-20 06:13:38 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 10:49:17 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 12:01:04 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/19808)
6 years, 6 months ago (2014-06-20 12:01:05 UTC) #9
Shu Chen
The CQ bit was checked by shuchen@chromium.org
6 years, 6 months ago (2014-06-20 14:04:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shuchen@chromium.org/346513003/100001
6 years, 6 months ago (2014-06-20 14:04:43 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-20 17:12:08 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 18:17:20 UTC) #13
Message was sent while issue was closed.
Change committed as 278771

Powered by Google App Engine
This is Rietveld 408576698