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

Side by Side Diff: webkit/glue/webinputevent_win.cc

Issue 42500: A quick fix for Issue 2215.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "webkit/glue/webinputevent.h" 7 #include "webkit/glue/webinputevent.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 webkit_glue::GetKeyIdentifierForWindowsKeyCode(windows_key_code); 329 webkit_glue::GetKeyIdentifierForWindowsKeyCode(windows_key_code);
330 base::strlcpy(key_identifier, key_identifier_str.c_str(), 330 base::strlcpy(key_identifier, key_identifier_str.c_str(),
331 kIdentifierLengthCap); 331 kIdentifierLengthCap);
332 } 332 }
333 333
334 if (GetKeyState(VK_SHIFT) & 0x8000) 334 if (GetKeyState(VK_SHIFT) & 0x8000)
335 modifiers |= SHIFT_KEY; 335 modifiers |= SHIFT_KEY;
336 if (GetKeyState(VK_CONTROL) & 0x8000) 336 if (GetKeyState(VK_CONTROL) & 0x8000)
337 modifiers |= CTRL_KEY; 337 modifiers |= CTRL_KEY;
338 if (GetKeyState(VK_MENU) & 0x8000) 338 if (GetKeyState(VK_MENU) & 0x8000)
339 modifiers |= (ALT_KEY | META_KEY); 339 modifiers |= ALT_KEY;
340 340
341 if (LOWORD(lparam) > 1) 341 if (LOWORD(lparam) > 1)
342 modifiers |= IS_AUTO_REPEAT; 342 modifiers |= IS_AUTO_REPEAT;
343 if (IsKeyPad(wparam, lparam)) 343 if (IsKeyPad(wparam, lparam))
344 modifiers |= IS_KEYPAD; 344 modifiers |= IS_KEYPAD;
345 } 345 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698