| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/location_bar/location_bar_view.cc (revision 79782)
|
| +++ chrome/browser/ui/views/location_bar/location_bar_view.cc (working copy)
|
| @@ -988,24 +988,7 @@
|
| const views::KeyEvent& event) {
|
| #if defined(OS_WIN)
|
| if (views::FocusManager::IsTabTraversalKeyEvent(event)) {
|
| - if (HasValidSuggestText()) {
|
| - // Return true so that the edit sees the tab and commits the suggestion.
|
| - return true;
|
| - }
|
| - if (keyword_hint_view_->IsVisible() && !event.IsShiftDown()) {
|
| - // Return true so the edit gets the tab event and enters keyword mode.
|
| - return true;
|
| - }
|
| -
|
| - // If the caret is not at the end, then tab moves the caret to the end.
|
| - if (!location_entry_->IsCaretAtEnd())
|
| - return true;
|
| -
|
| - // Tab while showing instant commits instant immediately.
|
| - // Return true so that focus traversal isn't attempted. The edit ends
|
| - // up doing nothing in this case.
|
| - if (location_entry_->model()->AcceptCurrentInstantPreview())
|
| - return true;
|
| + return location_entry_->model()->popup_model()->IsOpen();
|
| }
|
|
|
| return location_entry_->SkipDefaultKeyEventProcessing(event);
|
|
|