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

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: Removed logging in switch_access_event_handler.cc 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..a6c4ce0d10220391137fea1a518b57cf73418dd8 100644
--- a/chrome/browser/chromeos/accessibility/switch_access_event_handler.cc
+++ b/chrome/browser/chromeos/accessibility/switch_access_event_handler.cc
@@ -30,10 +30,10 @@ 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
- << " to switch access";
DispatchKeyEventToSwitchAccess(*event);
}
}
« 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