summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 19:41:46 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 19:41:46 +0000
commit731980c04db87643c41d6f8d6f594de1cf7b725d (patch)
tree32acaf7943e4555baea781e87155850a80db9fb7 /chrome/browser/views
parent89904504a55525eebbba9b1c8519fdfbef667255 (diff)
downloadchromium_src-731980c04db87643c41d6f8d6f594de1cf7b725d.zip
chromium_src-731980c04db87643c41d6f8d6f594de1cf7b725d.tar.gz
chromium_src-731980c04db87643c41d6f8d6f594de1cf7b725d.tar.bz2
Better behavior for ctrl-k: If we're already in forced_query mode, re-select the query text instead of clearing the box.
BUG=6985 TEST=Press ctrl-k, type "foo", press ctrl-k again. The omnibox should show "?foo" with "foo" selected. Review URL: http://codereview.chromium.org/119135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17757 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/location_bar_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index a792b99..d41d254 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -1313,8 +1313,8 @@ void LocationBarView::FocusLocation() {
}
void LocationBarView::FocusSearch() {
- location_entry_->SetUserText(L"?");
location_entry_->SetFocus();
+ location_entry_->SetForcedQuery();
}
void LocationBarView::SaveStateToContents(TabContents* contents) {