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

Issue 9835032: aura: Make RootWindow::DispatchKeyEvent drop unknown keys. (Closed)

Created:
8 years, 9 months ago by Daniel Erat
Modified:
8 years, 9 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, rniwa-cr
Visibility:
Public.

Description

aura: Make RootWindow::DispatchKeyEvent drop unknown keys. On Chrome OS, Aura receives XF86PowerOff KeyPress and KeyRelease events from X when the power button is pressed or released. These are converted to VKEY_UNKNOWN and were ending up as events with keyCode=0 and charCode=0 in the renderer. This change makes us drop them before that happens. BUG=119407 TEST=added, also manual: onkeydown/onkeypress/onkeyup don't fire for the power button anymore but do for all other keys on the chrome os keyboard Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128390

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -5 lines) Patch
M ui/aura/root_window.h View 1 chunk +4 lines, -5 lines 0 comments Download
M ui/aura/root_window.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/root_window_unittest.cc View 3 chunks +49 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Daniel Erat
8 years, 9 months ago (2012-03-22 23:29:58 UTC) #1
Ben Goodger (Google)
lgtm
8 years, 9 months ago (2012-03-22 23:35:35 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/9835032/1
8 years, 9 months ago (2012-03-23 00:42:44 UTC) #3
commit-bot: I haz the power
8 years, 9 months ago (2012-03-23 01:49:24 UTC) #4
Change committed as 128390

Powered by Google App Engine
This is Rietveld 408576698