Commit b72eac08 authored by Kevin Bailey's avatar Kevin Bailey Committed by Commit Bot

[omnibox mac] Make command-shift-enter open tab in foreground

Currently the code falls through to "if (command) then open in
background." This change breaks out the variation if shift is
also pressed.

Bug: 870789
Change-Id: Ie96d355c7c75bec276ed5322aac03f0d3f472a9b
Reviewed-on: https://chromium-review.googlesource.com/1170860Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Kevin Bailey <krb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582268}
parent 01d00996
......@@ -1230,7 +1230,7 @@ bool OmniboxViewViews::HandleKeyEvent(views::Textfield* textfield,
OmniboxPopupModel::TAB_SWITCH) {
popup_view_->OpenMatch(WindowOpenDisposition::SWITCH_TO_TAB);
} else {
if (alt) {
if (alt || (shift && command)) {
model()->AcceptInput(WindowOpenDisposition::NEW_FOREGROUND_TAB,
false);
} else if (command) {
......
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