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

Issue 2025733002: [DomKey] Use VK->DomKey mapping for non-printable keys (Closed)

Created:
4 years, 6 months ago by chongz
Modified:
4 years, 6 months ago
Reviewers:
dtapuska, 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] Use VK->DomKey mapping for non-printable keys The original DomCode+flags->DomKey mapping causes issue when the application generates mismatched keyCode + scanCode, or missing scanCode entirely. (e.g. keyboard-rewrite softwares that only modifies keyCode) A better solution is to use VK+flags->DomKey mapping (for both printable and non-printable keys). This CL is the first step for the non-printable keys, where a fixed table for general non-printable keys was introduced. And there will be follow up CLs to handle other language-specific cases and printable keys. BUG=612749 Committed: https://crrev.com/fc639eb35da440358def45719ec8573117069e87 Cr-Commit-Position: refs/heads/master@{#397741}

Patch Set 1 : Add VK->DomKey mapping #

Total comments: 19

Patch Set 2 : Wez's review #

Total comments: 1

Patch Set 3 : Wez's review 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -1 line) Patch
M ui/events/keycodes/keyboard_codes_posix.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/keycodes/keyboard_codes_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/keycodes/platform_key_map_win.cc View 1 2 3 chunks +137 lines, -1 line 0 comments Download
M ui/events/keycodes/platform_key_map_win_unittest.cc View 1 2 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
chongz
dtapuska@ can you take a look at this DomKey CL please? Thanks!
4 years, 6 months ago (2016-05-30 21:29:56 UTC) #3
dtapuska
On 2016/05/30 21:29:56, chongz wrote: > dtapuska@ can you take a look at this DomKey ...
4 years, 6 months ago (2016-05-31 14:18:33 UTC) #6
chongz
wez@ can you take a look at this non-printable DomKey CL please? Thanks!
4 years, 6 months ago (2016-05-31 15:17:20 UTC) #8
Wez
https://codereview.chromium.org/2025733002/diff/60001/ui/events/keycodes/platform_key_map_win.cc File ui/events/keycodes/platform_key_map_win.cc (right): https://codereview.chromium.org/2025733002/diff/60001/ui/events/keycodes/platform_key_map_win.cc#newcode146 ui/events/keycodes/platform_key_map_win.cc:146: } kNonPrintableKeyMap[] = { nit: Are you sure that ...
4 years, 6 months ago (2016-06-01 20:49:04 UTC) #9
chongz
wez@ thanks for the review! PTAL again, thanks! https://codereview.chromium.org/2025733002/diff/60001/ui/events/keycodes/platform_key_map_win.cc File ui/events/keycodes/platform_key_map_win.cc (right): https://codereview.chromium.org/2025733002/diff/60001/ui/events/keycodes/platform_key_map_win.cc#newcode146 ui/events/keycodes/platform_key_map_win.cc:146: } ...
4 years, 6 months ago (2016-06-01 23:09:42 UTC) #10
chongz
wez@ I've updated CL as per your comments, PTAL, thanks! (comments and replies in last ...
4 years, 6 months ago (2016-06-02 23:32:15 UTC) #11
Wez
lgtm https://codereview.chromium.org/2025733002/diff/60001/ui/events/keycodes/platform_key_map_win.cc File ui/events/keycodes/platform_key_map_win.cc (right): https://codereview.chromium.org/2025733002/diff/60001/ui/events/keycodes/platform_key_map_win.cc#newcode146 ui/events/keycodes/platform_key_map_win.cc:146: } kNonPrintableKeyMap[] = { On 2016/06/01 23:09:42, chongz ...
4 years, 6 months ago (2016-06-03 00:00:52 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2025733002/100001
4 years, 6 months ago (2016-06-03 17:19:03 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 6 months ago (2016-06-03 17:23:38 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 17:25:41 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fc639eb35da440358def45719ec8573117069e87
Cr-Commit-Position: refs/heads/master@{#397741}

Powered by Google App Engine
This is Rietveld 408576698