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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 1855423003: Interpret '?' and Ctrl-K or Ctrl-E as putting omnibox in keyword search mode for Default Search Pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add includes for mac tests Created 4 years, 6 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
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
index 9bba1fe9c0878d1af456bf2c77d94c5d0bc5f1d5..944e6ed527431a6af0c593fb4627f07e8d14c637 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
@@ -335,7 +335,7 @@ void LocationBarViewMac::FocusLocation(bool select_all) {
}
void LocationBarViewMac::FocusSearch() {
- omnibox_view_->SetForcedQuery();
+ omnibox_view_->EnterKeywordModeForDefaultSearchProvider();
}
void LocationBarViewMac::UpdateContentSettingsIcons() {

Powered by Google App Engine
This is Rietveld 408576698