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

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

Issue 5966006: Hitting Tab should always move cursor to end of omnibox text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build. Created 9 years, 11 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/location_bar/suggested_text_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_views.cc
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index 08f93e309701b7e7a9a8c00ad3e330f4171ab36a..a5a403941054eb37f4ea8b00d561cdb3ac5345d4 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -276,6 +276,7 @@ void NativeTextfieldViews::GetSelectedRange(TextRange* range) const {
void NativeTextfieldViews::SelectRange(const TextRange& range) {
model_->SelectRange(range);
+ UpdateCursorBoundsAndTextOffset();
SchedulePaint();
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/suggested_text_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698