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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/classic_compatibility.js

Issue 1129793006: Add additional commands in compat mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add keycode mapping for space. Created 5 years, 7 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/chromevox/manifest.json.jinja2 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/classic_compatibility.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/classic_compatibility.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/classic_compatibility.js
index 8e934ea26645a3849a90c09b07dce71c3331a51c..440f2cc15edf35c8402ffc0d649454261228b246 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/classic_compatibility.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/classic_compatibility.js
@@ -93,10 +93,19 @@ ClassicCompatibility.prototype = {
case 'Search':
evt.searchKeyHeld = true;
break;
+ case 'Space':
+ evt.keyCode = 32;
+ break;
case 'Left Arrow':
+ evt.keyCode = 37;
+ break;
+ case 'Up Arrow':
evt.keyCode = 38;
break;
case 'Right Arrow':
+ evt.keyCode = 39;
+ break;
+ case 'Down Arrow':
evt.keyCode = 40;
break;
default:
@@ -116,11 +125,15 @@ ClassicCompatibility.prototype = {
getNextCommand_: function(classicCommand) {
switch (classicCommand) {
case 'right':
- case 'forward':
return 'nextElement';
+ case 'forward':
+ return 'nextLine';
case 'left':
- case 'backward':
return 'previousElement';
+ case 'backward':
+ return 'previousLine';
+ case 'forceClickOnCurrentItem':
+ return 'doDefault';
default:
return classicCommand;
}
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/manifest.json.jinja2 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698