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

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

Issue 2463983002: Implement support for chorded braille commands (Closed)
Patch Set: Add more commands. 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 6f30e143b6fdb635f46da820675d7670785e62e9..61f5faad308fef97eafec0b0e601c4696e54729d 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');
@@ -538,6 +539,12 @@ Background.prototype = {
content.text,
// Cast ok since displayPosition is always defined in this case.
/** @type {number} */ (evt.displayPosition));
+ break;
dmazzoni 2016/11/01 16:22:37 nit: indentation
David Tseng 2016/11/01 20:11:59 Done.
+ 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