Commit 6e87331a authored by manuk's avatar manuk Committed by Commit Bot

[omnibox] Select omnibox text when focusing the omnibox with F6.

Bug: 931541
Change-Id: Ic30aa92c18ebcb4dc09216fef7a09f5e430bf572
Reviewed-on: https://chromium-review.googlesource.com/c/1477807Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Commit-Queue: manuk hovanesian <manukh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633793}
parent 966b7003
......@@ -594,8 +594,8 @@ void ToolbarView::ChildPreferredSizeChanged(views::View* child) {
// also so that it selects all content in the location bar.
bool ToolbarView::SetPaneFocusAndFocusDefault() {
if (!location_bar_->HasFocus()) {
location_bar_->FocusLocation();
SetPaneFocus(location_bar_);
location_bar_->FocusLocation();
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment