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

Issue 2128573002: [DomKey] Support Japanese (JIS) layout special keys (Closed)

Created:
4 years, 5 months ago by chongz
Modified:
4 years, 5 months ago
Reviewers:
Wez
CC:
chromium-reviews, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DomKey] Support Japanese (JIS) layout special keys This CL adds mappings for for keys specific to Japanese (JIS) layouts: 1. "半角/全角\n漢字" (DomKey::HANKAKU/ZENKAKU/KANJI_MODE, DomCode::BACKQUOTE, to the left of Digit1) Used to switch between Hankaku, Zenkaku and KanjiMode, may use with Alt. 2. "Caps Lock\n英数" (DomKey::ALPHANUMERIC/HIRAGANA, DomCode::CAPS_LOCK, same location as CapsLock) Used to switch between Alphanumeric and Hiragana. 3. "カタカナ\nひらがな\nローマ字" (DomKey::KATAKANA/HIRAGANA/ROMAJI, DomCode::KANA_MODE, to the left of AltRight) Used to switch between Katakana, Hiragana and Romaji, may use with Alt or Shift (We don't need to handle Convert/NonConvert specially but could simply put them into the generic mapping table. The reason is their VKEYs are unique and clear - VK_CONVERT/VK_NONCONVERT, and the OS won't produce those VKEYs if they are not supported by current layout. e.g. Will produce 0xff on US layout) Since the VKEYs for these keys express their correct meanings, taking into account modifiers and lock states, we can use a static table to map them to DomKey values. See the BUG for how JIS keyboard works and how to produce these values... Note: Sometimes pressing a key will cause 'keyup' events that does not match this key, this is known and actually means we are leaving the previous state. e.g. Press Alphanumeric key first, and then if you hit Hiragana key you will actually get a keyup for Alphanumeric key, which means you are leaving Alphanumeric state. BUG=612694 Committed: https://crrev.com/9d990a45f12393c2e557d4b33116b5ce1022b403 Cr-Commit-Position: refs/heads/master@{#404715}

Patch Set 1 : Add DomKey map for Japanese special keys #

Total comments: 23

Patch Set 2 : wez's review #

Patch Set 3 : Wez's review 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -34 lines) Patch
M ui/events/keycodes/keyboard_codes_posix.h View 1 1 chunk +7 lines, -3 lines 0 comments Download
M ui/events/keycodes/keyboard_codes_win.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/keycodes/platform_key_map_win.cc View 1 2 3 chunks +35 lines, -8 lines 0 comments Download
M ui/events/keycodes/platform_key_map_win_unittest.cc View 1 8 chunks +47 lines, -23 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
chongz
wez@ this CL adds DomKey support for JIS special keys, PTAL, thanks! https://codereview.chromium.org/2128573002/diff/20001/ui/events/keycodes/platform_key_map_win.cc File ui/events/keycodes/platform_key_map_win.cc ...
4 years, 5 months ago (2016-07-06 22:50:34 UTC) #5
Wez
This mostly looks great - just some minor nits and mainly comments on the CL ...
4 years, 5 months ago (2016-07-07 18:25:51 UTC) #6
chongz
Thanks for the detailed review! :D PTAL again, thanks! On 2016/07/07 18:25:51, Wez wrote: > ...
4 years, 5 months ago (2016-07-07 22:18:09 UTC) #13
Wez
lgtm https://codereview.chromium.org/2128573002/diff/20001/ui/events/keycodes/platform_key_map_win.cc File ui/events/keycodes/platform_key_map_win.cc (right): https://codereview.chromium.org/2128573002/diff/20001/ui/events/keycodes/platform_key_map_win.cc#newcode215 ui/events/keycodes/platform_key_map_win.cc:215: return DomKey::KANA_MODE; On 2016/07/07 22:18:09, chongz wrote: > ...
4 years, 5 months ago (2016-07-08 23:34:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128573002/60001
4 years, 5 months ago (2016-07-11 20:01:48 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-11 20:07:00 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 20:07:12 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 20:08:55 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9d990a45f12393c2e557d4b33116b5ce1022b403
Cr-Commit-Position: refs/heads/master@{#404715}

Powered by Google App Engine
This is Rietveld 408576698