summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/views/controls/textfield/native_textfield_views.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index ebd13ac..ecfc28c 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;