Commit e2a3dd0d authored by elichtenberg's avatar elichtenberg Committed by Commit bot

Use keys 1 through 3 to switch between and click on focusable elements.

BUG=593885
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2738893003
Cr-Commit-Position: refs/heads/master@{#456161}
parent ac5c34a5
...@@ -30,10 +30,10 @@ void SwitchAccessEventHandler::OnKeyEvent(ui::KeyEvent* event) { ...@@ -30,10 +30,10 @@ void SwitchAccessEventHandler::OnKeyEvent(ui::KeyEvent* event) {
ui::KeyboardCode key_code = event->key_code(); ui::KeyboardCode key_code = event->key_code();
if (key_code == ui::VKEY_1 || key_code == ui::VKEY_2 || if (key_code == ui::VKEY_1 || key_code == ui::VKEY_2 ||
key_code == ui::VKEY_3 || key_code == ui::VKEY_4 || key_code == ui::VKEY_3 || key_code == ui::VKEY_4 ||
key_code == ui::VKEY_5) { key_code == ui::VKEY_5 || key_code == ui::VKEY_6 ||
key_code == ui::VKEY_7 || key_code == ui::VKEY_8 ||
key_code == ui::VKEY_9) {
CancelEvent(event); CancelEvent(event);
LOG(ERROR) << "Dispatching key " << key_code - ui::VKEY_0
<< " to switch access";
DispatchKeyEventToSwitchAccess(*event); DispatchKeyEventToSwitchAccess(*event);
} }
} }
......
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