| Index: chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| index 45383bccfe0b3f8f79b4bfe95640798969a0f9cd..a6d3e8c31fc6175da073cc1a634a2247fe811874 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| @@ -8,6 +8,7 @@
|
|
|
| goog.provide('cvox.BrailleBackground');
|
|
|
| +goog.require('BrailleKeyEventRewriter');
|
| goog.require('ChromeVoxState');
|
| goog.require('cvox.BrailleDisplayManager');
|
| goog.require('cvox.BrailleInputHandler');
|
| @@ -15,7 +16,6 @@ goog.require('cvox.BrailleInterface');
|
| goog.require('cvox.BrailleKeyEvent');
|
| goog.require('cvox.BrailleTranslatorManager');
|
|
|
| -
|
| /**
|
| * @constructor
|
| * @param {cvox.BrailleDisplayManager=} opt_displayManagerForTest
|
| @@ -61,6 +61,9 @@ cvox.BrailleBackground = function(opt_displayManagerForTest,
|
|
|
| /** @private {boolean} */
|
| this.frozen_ = false;
|
| +
|
| + /** @private {BrailleKeyEventRewriter} */
|
| + this.keyEventRewriter_ = new BrailleKeyEventRewriter();
|
| };
|
| goog.addSingletonGetter(cvox.BrailleBackground);
|
|
|
| @@ -149,6 +152,10 @@ cvox.BrailleBackground.prototype.setContent_ = function(
|
| */
|
| cvox.BrailleBackground.prototype.onBrailleKeyEvent_ = function(
|
| brailleEvt, content) {
|
| + if (this.keyEventRewriter_.onBrailleKeyEvent(brailleEvt)) {
|
| + return;
|
| + }
|
| +
|
| if (this.inputHandler_.onBrailleKeyEvent(brailleEvt)) {
|
| return;
|
| }
|
|
|