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

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

Issue 26869004: Merge 227483 "Views Textfield/Omnibox: Do not paste on Ctrl+Alt[..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1650/src/
Patch Set: Created 7 years, 2 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 | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views.cc
===================================================================
--- ui/views/controls/textfield/native_textfield_views.cc (revision 227959)
+++ ui/views/controls/textfield/native_textfield_views.cc (working copy)
@@ -1190,7 +1190,7 @@
const bool readable = !textfield_->IsObscured();
const bool shift = key_event.IsShiftDown();
const bool control = key_event.IsControlDown();
- const bool alt = key_event.IsAltDown();
+ const bool alt = key_event.IsAltDown() || key_event.IsAltGrDown();
bool text_changed = false;
bool cursor_changed = false;
switch (key_code) {
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698