| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
|
| index e4bd58312b4268dcd0d7a081a0e1350efb10e6d0..75fd6615348fd7f03dfa4b27b13c75e47efd102d 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js
|
| @@ -15,6 +15,7 @@ goog.require('Output');
|
| goog.require('Output.EventType');
|
| goog.require('cursors.Cursor');
|
| goog.require('cursors.Range');
|
| +goog.require('cvox.BrailleBackground');
|
| goog.require('cvox.ChromeVoxEditableTextBase');
|
|
|
| goog.scope(function() {
|
| @@ -38,6 +39,12 @@ var Unit = cursors.Unit;
|
| editing.TextEditHandler = function(node) {
|
| /** @const {!AutomationNode} @private */
|
| this.node_ = node;
|
| +
|
| + // Refresh braille translation.
|
| + if (node.inputType == 'email' || node.inputType == 'url') {
|
| + cvox.BrailleBackground.getInstance().getTranslatorManager().refresh(
|
| + localStorage['brailleTable8']);
|
| + }
|
| };
|
|
|
| editing.TextEditHandler.prototype = {
|
| @@ -47,6 +54,16 @@ editing.TextEditHandler.prototype = {
|
| },
|
|
|
| /**
|
| + * Invalidates this handler. A caller must invalidate this handler for it to
|
| + * properly reset any intermediate actions it took on behalf of a user.
|
| + */
|
| + invalidate: function() {
|
| + // Refresh back to user's table selection.
|
| + cvox.BrailleBackground.getInstance().getTranslatorManager().refresh(
|
| + localStorage['brailleTable']);
|
| + },
|
| +
|
| + /**
|
| * Receives the following kinds of events when the node provided to the
|
| * constructor is focuse: |focus|, |textChanged|, |textSelectionChanged| and
|
| * |valueChanged|.
|
|
|