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

Unified Diff: views/focus/accelerator_handler_win.cc

Issue 6487002: Add a new constructor to KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/focus/accelerator_handler_touch.cc ('k') | views/native_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/accelerator_handler_win.cc
===================================================================
--- views/focus/accelerator_handler_win.cc (revision 74437)
+++ views/focus/accelerator_handler_win.cc (working copy)
@@ -24,11 +24,7 @@
switch (msg.message) {
case WM_KEYDOWN:
case WM_SYSKEYDOWN: {
- KeyEvent event(ui::ET_KEY_PRESSED,
- ui::KeyboardCodeForWindowsKeyCode(msg.wParam),
- KeyEvent::GetKeyStateFlags(),
- msg.lParam & 0xFFFF,
- (msg.lParam & 0xFFFF0000) >> 16);
+ KeyEvent event(msg);
process_message = focus_manager->OnKeyEvent(event);
if (!process_message) {
// Record that this key is pressed so we can remember not to
« no previous file with comments | « views/focus/accelerator_handler_touch.cc ('k') | views/native_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698