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

Issue 2097643002: Reland: [DomKey] Expose Korean special keys on Korean keyboard layout only (Closed)

Created:
4 years, 6 months ago by chongz
Modified:
4 years, 5 months ago
Reviewers:
tommycli, 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

Original issue's description: > [DomKey] Expose Korean special keys on Korean keyboard layout only > > Korean keyboard has special keys "HangulMode" and "HanjaMode", we should > only expose them when the system layout is Korean. Otherwise we should > return "Unidentified". > > This matches Firefox and windows virtual key. > > Note: This also works with JIS keyboard + Korean layout, because we are > mapping DomKey based on KeyboardCode instead of DomCode. > > BUG=612736 > > Committed: https://crrev.com/bdcfb5a1816f1bad537d7611c7ccb972b550339c > Cr-Commit-Position: refs/heads/master@{#399783} > Revert: https://codereview.chromium.org/2061123005 Original issue: Windows API |LoadKeyboardLayout()| won't pass DrMemory tests for Korean and Japanese locale. This should be an issue of DrMemory test or Windows itself. See https://crbug.com/612736#c11 Solution: Just skip |LoadKeyboardLayout()| and hardcode locale for Korean, it works because we are only testing non-printable keys, which doesn't care about |ToUnicodeEx()|. Note: |ToUnicodeEx()| returns empty string if the specified locale is invalid. (e.g. Korean HKL without calling 'LoadKeyboardLayout()') Also Note: "mock_keyboard.h" has the similar issue, e.g. Call "MockKeyboard::GetCharacters(MockKeyboard::LAYOUT_KOREAN, ..)" somewhere and run DrMemory full test, which will fail as well. BUG=612736 Committed: https://crrev.com/3f4cf0ae18a6792114b1358f7bf56333b041ba27 Cr-Commit-Position: refs/heads/master@{#402611}

Patch Set 1 : Original Patch #

Patch Set 2 : Fixed Patch #

Total comments: 4

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -16 lines) Patch
M ui/events/keycodes/platform_key_map_win.cc View 1 2 4 chunks +27 lines, -10 lines 0 comments Download
M ui/events/keycodes/platform_key_map_win_unittest.cc View 1 2 6 chunks +62 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
chongz
tommycli@ PTAL at this CL for re-landing, thanks! I've tested DrMemory locally, but is there ...
4 years, 6 months ago (2016-06-24 14:29:59 UTC) #7
tommycli
Hi chongz: I recommend finding the original reviewer. I have very little knowledge about the ...
4 years, 6 months ago (2016-06-24 16:47:55 UTC) #8
chongz
wez@ PTAL at this CL for re-landing, thanks! Plus: do you know anything about why ...
4 years, 6 months ago (2016-06-24 17:05:32 UTC) #10
Wez
https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc File ui/events/keycodes/platform_key_map_win_unittest.cc (right): https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc#newcode40 ui/events/keycodes/platform_key_map_win_unittest.cc:40: // |GetInputLocale(L"00000412", KLF_ACTIVATE)| returns the coct What is the ...
4 years, 6 months ago (2016-06-24 17:54:58 UTC) #11
chongz
https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc File ui/events/keycodes/platform_key_map_win_unittest.cc (right): https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc#newcode40 ui/events/keycodes/platform_key_map_win_unittest.cc:40: // |GetInputLocale(L"00000412", KLF_ACTIVATE)| returns the coct On 2016/06/24 17:54:57, ...
4 years, 6 months ago (2016-06-24 18:07:27 UTC) #12
Wez
On 2016/06/24 18:07:27, chongz wrote: > https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc > File ui/events/keycodes/platform_key_map_win_unittest.cc (right): > > https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc#newcode40 > ...
4 years, 6 months ago (2016-06-24 18:17:19 UTC) #13
chongz
https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc File ui/events/keycodes/platform_key_map_win_unittest.cc (right): https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc#newcode40 ui/events/keycodes/platform_key_map_win_unittest.cc:40: // |GetInputLocale(L"00000412", KLF_ACTIVATE)| returns the coct On 2016/06/24 18:07:27, ...
4 years, 6 months ago (2016-06-24 18:45:55 UTC) #15
Wez
On 2016/06/24 18:45:55, chongz wrote: > https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc > File ui/events/keycodes/platform_key_map_win_unittest.cc (right): > > https://codereview.chromium.org/2097643002/diff/20001/ui/events/keycodes/platform_key_map_win_unittest.cc#newcode40 > ...
4 years, 6 months ago (2016-06-24 18:48:45 UTC) #16
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/2097643002/40001
4 years, 5 months ago (2016-06-28 23:56:36 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-29 00:22:19 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 00:24:12 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3f4cf0ae18a6792114b1358f7bf56333b041ba27
Cr-Commit-Position: refs/heads/master@{#402611}

Powered by Google App Engine
This is Rietveld 408576698