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

Issue 10397003: Minor improvements for key_rewriter.cc. (Closed)

Created:
8 years, 7 months ago by Yusuke Sato
Modified:
8 years, 7 months ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Minor improvements for key_rewriter.cc. - Use VKEY_CONTROL instead of VKEY_LCONTROL/VKEY_RCONTROL to be consistent with Windows' behavior. Windows (and ui/base/keycodes/keyboard_code_conversion_x.cc) never sends a VKEY_[LR]CONTROL event when left/right control is pressed. The VKs are used only as a return value of GetKeyboardState() Windows API. - Add unit tests for Command+NumPad presses. Add tests that checks if NumPad1 + Command key presses on an Apple keyboard are treated as VKEY_NUMPAD1 with EF_CONTROL_DOWN. BUG=None TEST=manual + unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137621

Patch Set 1 #

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -92 lines) Patch
M chrome/browser/ui/views/ash/key_rewriter.h View 1 3 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/ash/key_rewriter.cc View 1 7 chunks +44 lines, -48 lines 0 comments Download
M chrome/browser/ui/views/ash/key_rewriter_unittest.cc View 1 34 chunks +73 lines, -35 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Yusuke Sato
could you review this?
8 years, 7 months ago (2012-05-16 04:16:33 UTC) #1
Daniel Erat
lgtm
8 years, 7 months ago (2012-05-16 15:42:46 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusukes@chromium.org/10397003/2001
8 years, 7 months ago (2012-05-17 01:15:22 UTC) #3
commit-bot: I haz the power
8 years, 7 months ago (2012-05-17 03:09:31 UTC) #4
Change committed as 137621

Powered by Google App Engine
This is Rietveld 408576698