Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: chrome/browser/chromeos/accessibility/switch_access_event_handler.cc

Issue 2738893003: Use keys 1 through 3 to switch between and click on focusable elements. (Closed)
Patch Set: Formatting changes based on CL comments. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/switch_access/switch_access.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/switch_access_event_handler.cc
diff --git a/chrome/browser/chromeos/accessibility/switch_access_event_handler.cc b/chrome/browser/chromeos/accessibility/switch_access_event_handler.cc
index 25421569e22ca2ec03d544aefddb90cbe1372e81..a816e0efd5aef57df81e52a265812b7a9355e1f7 100644
--- a/chrome/browser/chromeos/accessibility/switch_access_event_handler.cc
+++ b/chrome/browser/chromeos/accessibility/switch_access_event_handler.cc
@@ -30,7 +30,9 @@ void SwitchAccessEventHandler::OnKeyEvent(ui::KeyEvent* event) {
ui::KeyboardCode key_code = event->key_code();
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_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);
LOG(ERROR) << "Dispatching key " << key_code - ui::VKEY_0
David Tseng 2017/03/10 18:09:22 Remove debug logging or VLOG it; this will show up
elichtenberg 2017/03/10 18:30:44 Done.
<< " to switch access";
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/switch_access/switch_access.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698