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

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

Created:
4 years, 6 months ago by chongz
Modified:
4 years, 6 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] 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}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Wez's review #

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

Messages

Total messages: 12 (4 generated)
chongz
wez@ PTAL at this Korean DomKey CL, thanks!
4 years, 6 months ago (2016-06-08 14:27:45 UTC) #2
Wez
lgtm https://codereview.chromium.org/2046193002/diff/1/ui/events/keycodes/platform_key_map_win.cc File ui/events/keycodes/platform_key_map_win.cc (right): https://codereview.chromium.org/2046193002/diff/1/ui/events/keycodes/platform_key_map_win.cc#newcode258 ui/events/keycodes/platform_key_map_win.cc:258: HKL layout) { nit: I'd suggest calling this ...
4 years, 6 months ago (2016-06-10 22:55:09 UTC) #3
chongz
https://codereview.chromium.org/2046193002/diff/1/ui/events/keycodes/platform_key_map_win.cc File ui/events/keycodes/platform_key_map_win.cc (right): https://codereview.chromium.org/2046193002/diff/1/ui/events/keycodes/platform_key_map_win.cc#newcode258 ui/events/keycodes/platform_key_map_win.cc:258: HKL layout) { On 2016/06/10 22:55:09, Wez wrote: > ...
4 years, 6 months ago (2016-06-14 20:41:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046193002/20001
4 years, 6 months ago (2016-06-14 20:42:24 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-14 21:41:49 UTC) #8
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 21:42:12 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/bdcfb5a1816f1bad537d7611c7ccb972b550339c Cr-Commit-Position: refs/heads/master@{#399783}
4 years, 6 months ago (2016-06-14 21:44:15 UTC) #11
tommycli
4 years, 6 months ago (2016-06-15 15:54:53 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2061123005/ by tommycli@chromium.org.

The reason for reverting is: Breaks Windows Unit DrMemory tests. Sorry.

https://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20(D...

First breaking build:

https://build.chromium.org/p/chromium.memory.fyi/builders/Windows%20Unit%20(D...

Error:

UNADDRESSABLE ACCESS: reading 0x00001d2c-0x00001d30 4 byte(s) within
0x00001d2c-0x00001d30
# 0 system call NtUserLoadKeyboardLayoutEx UNICODE_STRING.Buffer
# 1 USER32.dll!SetSystemCursor                                               
+0x6c     (0x75780272 <USER32.dll+0x70272>)
# 2 USER32.dll!OpenWindowStationW                                            
+0xa7b    (0x7576babf <USER32.dll+0x5babf>)
# 3 USER32.dll!LoadKeyboardLayoutW                                           
+0x14     (0x7576bb2c <USER32.dll+0x5bb2c>)
# 4 ui::PlatformKeyMapTest_KoreanSpecificKeys_Test::TestBody                  
[ui\events\keycodes\platform_key_map_win_unittest.cc:309]
# 5 testing::internal::HandleExceptionsInMethodIfSupported<>                  
[testing\gtest\src\gtest.cc:2458]
Note: @0:00:18.236 in thread 3168
Suppression (error hash=#54506E6D47A9FB57#):
For more info on using suppressions see
http://dev.chromium.org/developers/how-tos/using-drmemory#TOC-Suppressing-err...
{
UNADDRESSABLE ACCESS
name=<insert_a_suppression_name_here>
system call NtUserLoadKeyboardLayoutEx UNICODE_STRING.Buffer
USER32.dll!SetSystemCursor
USER32.dll!OpenWindowStationW
USER32.dll!LoadKeyboardLayoutW
*!ui::PlatformKeyMapTest_KoreanSpecificKeys_Test::TestBody
*!testing::internal::HandleExceptionsInMethodIfSupported<>
}

UNADDRESSABLE ACCESS: reading 0x00001d28-0x00001d2a 2 byte(s) within
0x00001d28-0x00001d2a
# 0 system call NtUserLoadKeyboardLayoutEx UNICODE_STRING.Length
# 1 USER32.dll!SetSystemCursor                                               
+0x6c     (0x75780272 <USER32.dll+0x70272>)
# 2 USER32.dll!OpenWindowStationW                                            
+0xa7b    (0x7576babf <USER32.dll+0x5babf>)
# 3 USER32.dll!LoadKeyboardLayoutW                                           
+0x14     (0x7576bb2c <USER32.dll+0x5bb2c>)
# 4 ui::PlatformKeyMapTest_KoreanSpecificKeys_Test::TestBody                  
[ui\events\keycodes\platform_key_map_win_unittest.cc:309]
# 5 testing::internal::HandleExceptionsInMethodIfSupported<>                  
[testing\gtest\src\gtest.cc:2458]
Note: @0:00:18.236 in thread 3168
Suppression (error hash=#EBB09B57A8C7AF19#):
For more info on using suppressions see
http://dev.chromium.org/developers/how-tos/using-drmemory#TOC-Suppressing-err...
{
UNADDRESSABLE ACCESS
name=<insert_a_suppression_name_here>
system call NtUserLoadKeyboardLayoutEx UNICODE_STRING.Length
USER32.dll!SetSystemCursor
USER32.dll!OpenWindowStationW
USER32.dll!LoadKeyboardLayoutW
*!ui::PlatformKeyMapTest_KoreanSpecificKeys_Test::TestBody
*!testing::internal::HandleExceptionsInMethodIfSupported<>
}.

Powered by Google App Engine
This is Rietveld 408576698