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

Issue 278843002: Don't kill key events even when it's VKEY_UNKNOWN. (Closed)

Created:
6 years, 7 months ago by Yuki
Modified:
6 years, 7 months ago
Reviewers:
sadrul
CC:
chromium-reviews, ben+aura_chromium.org, kalyank, Elliot Glaysher
Visibility:
Public.

Description

Don't kill key events even when it's VKEY_UNKNOWN. We're killing key events with key_code = VKEY_UNKNOWN in WindowTargeter, but it's wrong. There exists not a few hardware keys used to type characters (such as ä, í) whose key code falls into VKEY_UNKNOWN. We should not ignore key events just because their key code falls into VKEY_UNKNOWN. VKEY_UNKNOWN means just that we failed to map a key code to our small set of keys. Even if it's not a well-known standard key, it's a key. This CL allows all the key events which have a character be despatched to the target window regardless of key code. If we need to ignore some special keys, we should explicitly list them up. NOTE against Issue 119407 ( https://codereview.chromium.org/9835032 ) XF86XK_PowerOff no longer converts into VKEY_UNKNOWN, it converts into VKEY_POWER (=0x98). BUG=363037 TEST=Manually done with a UK keyboard, which has keycode 94. Or with HHKB with running xmodmap -e 'keycode 100 = adiaeresis Adiaeresis'. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270347

Patch Set 1 #

Patch Set 2 : Synced. #

Patch Set 3 : Changed not to pass keycode=0 && char=0 events to renderers. Also added testcases. #

Patch Set 4 : Synced. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M ui/aura/window_targeter.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Yuki
Sadrul, could you review this CL? I'd like to land this CL in M35 stable ...
6 years, 7 months ago (2014-05-09 09:19:54 UTC) #1
sadrul
On 2014/05/09 09:19:54, Yuki wrote: > Sadrul, could you review this CL? > > I'd ...
6 years, 7 months ago (2014-05-09 15:49:59 UTC) #2
Yuki
On 2014/05/09 15:49:59, sadrul wrote: > On 2014/05/09 09:19:54, Yuki wrote: > > Sadrul, could ...
6 years, 7 months ago (2014-05-09 16:46:21 UTC) #3
sadrul
If we are to land this, then you need to include changes to make sure ...
6 years, 7 months ago (2014-05-09 17:24:04 UTC) #4
Yuki
As per your concern, I changed this CL a little more conservative. This CL makes ...
6 years, 7 months ago (2014-05-12 09:02:06 UTC) #5
sadrul
LGTM
6 years, 7 months ago (2014-05-14 03:17:38 UTC) #6
Yuki
The CQ bit was checked by yukishiino@chromium.org
6 years, 7 months ago (2014-05-14 03:21:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/278843002/60001
6 years, 7 months ago (2014-05-14 03:22:43 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-14 06:34:16 UTC) #9
Message was sent while issue was closed.
Change committed as 270347

Powered by Google App Engine
This is Rietveld 408576698