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

Unified Diff: views/controls/textfield/textfield.cc

Issue 209036: Home/End were being forwarded to the page from the find box.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/textfield.cc
===================================================================
--- views/controls/textfield/textfield.cc (revision 26491)
+++ views/controls/textfield/textfield.cc (working copy)
@@ -11,6 +11,7 @@
#include "app/gfx/insets.h"
#if defined(OS_WIN)
#include "app/win_util.h"
+#include "base/win_util.h"
#endif
#include "base/string_util.h"
@@ -289,11 +290,11 @@
#if defined(OS_WIN)
bool Textfield::Keystroke::IsControlHeld() const {
- return GetKeyState(VK_CONTROL) >= 0;
+ return win_util::IsCtrlPressed();
}
bool Textfield::Keystroke::IsShiftHeld() const {
- return GetKeyState(VK_SHIFT) >= 0;
+ return win_util::IsShiftPressed();
}
#else
bool Textfield::Keystroke::IsControlHeld() const {
« 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