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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 10535046: Add Windows commandline switch --enable-views-textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS build; update strings/comments; cleanup, etc. Created 8 years, 6 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
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index bb8fb31615c60b60376eeabeb582dba61676602b..0eefd8e486ec9c49c3f2366644cb6772f5675a9f 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -1057,9 +1057,7 @@ bool OmniboxViewWin::SkipDefaultKeyEventProcessing(
ui::KeyboardCode key = event.key_code();
// We don't process ALT + numpad digit as accelerators, they are used for
// entering special characters. We do translate alt-home.
- if (event.IsAltDown() && (key != ui::VKEY_HOME) &&
- views::NativeTextfieldWin::IsNumPadDigit(key,
- (event.flags() & ui::EF_EXTENDED) != 0))
+ if (event.IsAltDown() && (key != ui::VKEY_HOME) && event.IsNumPadDigit())
return true;
// Skip accelerators for key combinations omnibox wants to crack. This list

Powered by Google App Engine
This is Rietveld 408576698