summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/location_bar_view_gtk.cc
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/gtk/location_bar_view_gtk.cc
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/gtk/location_bar_view_gtk.cc')
-rw-r--r--chrome/browser/gtk/location_bar_view_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc
index 27dc3a0..beccd08 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/gtk/location_bar_view_gtk.cc
@@ -190,8 +190,8 @@ void LocationBarViewGtk::FocusLocation() {
}
void LocationBarViewGtk::FocusSearch() {
- location_entry_->SetUserText(L"?");
location_entry_->SetFocus();
+ location_entry_->SetForcedQuery();
}
void LocationBarViewGtk::UpdatePageActions() {