summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/views/location_bar/location_bar_view.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index a0b01cc..017574e 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1069,6 +1069,10 @@ bool LocationBarView::SkipDefaultKeyEventProcessing(const views::KeyEvent& e) {
return true;
}
#endif
+ if (keyword_hint_view_->IsVisible() && !e.IsShiftDown()) {
+ // Return true so the edit gets the tab event and enters keyword mode.
+ return true;
+ }
InstantController* instant = delegate_->GetInstant();
if (instant && instant->IsCurrent()) {
// Tab while showing instant commits instant immediately.
@@ -1077,10 +1081,6 @@ bool LocationBarView::SkipDefaultKeyEventProcessing(const views::KeyEvent& e) {
// up doing nothing in this case.
return true;
}
- if (keyword_hint_view_->IsVisible() && !e.IsShiftDown()) {
- // Return true so the edit gets the tab event and enters keyword mode.
- return true;
- }
}
#if defined(OS_WIN)