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

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

Issue 12408023: Fix views omnibox unfocused double-click behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: ui/views/controls/textfield/native_textfield_views.cc
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index ebd13aca5d2e8adccb5bc674fef6f8532ebe33e6..ecfc28c277fdbc0cad133a4888092b879573a986 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -1346,6 +1346,7 @@ void NativeTextfieldViews::HandleMousePressEvent(const ui::MouseEvent& event) {
MoveCursorTo(event.location(), event.IsShiftDown());
break;
case 1:
+ MoveCursorTo(event.location(), false);
model_->SelectWord();
OnCaretBoundsChanged();
break;
« 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