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

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

Issue 2463983002: Implement support for chorded braille commands (Closed)
Patch Set: Indent. Created 4 years, 1 month 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
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
index 617373eff1b9910ea2ef10be6f13f03780051562..8abf50e67928c0023512926588762142990ecd35 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -12,6 +12,7 @@ goog.provide('Background');
goog.require('AutomationPredicate');
goog.require('AutomationUtil');
goog.require('BackgroundKeyboardHandler');
+goog.require('BrailleCommandHandler');
goog.require('ChromeVoxState');
goog.require('CommandHandler');
goog.require('FindHandler');
@@ -548,6 +549,12 @@ Background.prototype = {
// Cast ok since displayPosition is always defined in this case.
/** @type {number} */ (evt.displayPosition));
break;
+ case cvox.BrailleKeyCommand.CHORD:
+ if (!evt.brailleDots)
+ return false;
+
+ BrailleCommandHandler.onBrailleCommand(evt.brailleDots);
+ break;
default:
return false;
}

Powered by Google App Engine
This is Rietveld 408576698