Commit 14de10b2 authored by Kevin Bailey's avatar Kevin Bailey Committed by Commit Bot

[omnibox] Restrict tab switch button space activation to no modifiers

Currently one can activate the tab switch button with shift-space etc.
This CL restricts it to only space, no modifiers.

Bug: 780835
Change-Id: I49b50d9d693e6201d7c3e74c91929bf71280865f
Reviewed-on: https://chromium-review.googlesource.com/1163991Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Kevin Bailey <krb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581122}
parent fc8bf0ff
...@@ -1328,6 +1328,7 @@ bool OmniboxViewViews::HandleKeyEvent(views::Textfield* textfield, ...@@ -1328,6 +1328,7 @@ bool OmniboxViewViews::HandleKeyEvent(views::Textfield* textfield,
break; break;
case ui::VKEY_SPACE: case ui::VKEY_SPACE:
if (!(control || alt || shift))
{ {
size_t start, end; size_t start, end;
GetSelectionBounds(&start, &end); GetSelectionBounds(&start, &end);
......
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