summaryrefslogtreecommitdiffstats
path: root/views/controls
diff options
context:
space:
mode:
authorsuzhe@google.com <suzhe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-28 02:36:49 +0000
committersuzhe@google.com <suzhe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-28 02:36:49 +0000
commit911696b92b1b5a666e59433b8b64303a2f4eae62 (patch)
treea47bab7021b5a34a532b1dae4140b8651558efd5 /views/controls
parentb7d6c22f8092a652d6b4572d4800e8a6aac6ccbe (diff)
downloadchromium_src-911696b92b1b5a666e59433b8b64303a2f4eae62.zip
chromium_src-911696b92b1b5a666e59433b8b64303a2f4eae62.tar.gz
chromium_src-911696b92b1b5a666e59433b8b64303a2f4eae62.tar.bz2
Hitting Tab should always move cursor to end of omnibox text.
BUG=66850 TEST=AutocompleteEditViewTest.TabMoveCursorToEnd and InstantTest.TabKey Review URL: http://codereview.chromium.org/5966006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/textfield/native_textfield_views.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index 08f93e3..a5a4039 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();
}