Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
index fbeb402a777c302f81387ff2449a4b741602d156..62cb4e969f636b4279a3826ee067735aee2b92bd 100644 |
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
@@ -705,20 +705,19 @@ bool OmniboxViewMac::OnDoCommandBySelector(SEL cmd) { |
if (cmd == @selector(deleteForward:)) |
delete_was_pressed_ = true; |
- // Don't intercept up/down-arrow or backtab if the popup isn't open. |
- if (model()->popup_model()->IsOpen()) { |
- if (cmd == @selector(moveDown:)) { |
- model()->OnUpOrDownKeyPressed(1); |
- return true; |
- } |
+ if (cmd == @selector(moveDown:)) { |
+ model()->OnUpOrDownKeyPressed(1); |
+ return true; |
+ } |
- if (cmd == @selector(moveUp:)) { |
- model()->OnUpOrDownKeyPressed(-1); |
- return true; |
- } |
+ if (cmd == @selector(moveUp:)) { |
+ model()->OnUpOrDownKeyPressed(-1); |
+ return true; |
+ } |
- // If instant extended is then allow users to press tab to select results |
- // from the omnibox popup. |
+ if (model()->popup_model()->IsOpen()) { |
+ // If instant extended is enabled then allow users to press tab to select |
+ // results from the omnibox popup. |
BOOL enableTabAutocomplete = |
chrome::search::IsInstantExtendedAPIEnabled(model()->profile()); |