diff --git a/browser/src/layer/marker/A11yTextInput.js b/browser/src/layer/marker/A11yTextInput.js index 970ce25a1ccd..018a6ff83340 100644 --- a/browser/src/layer/marker/A11yTextInput.js +++ b/browser/src/layer/marker/A11yTextInput.js @@ -288,7 +288,8 @@ L.A11yTextInput = L.TextInput.extend({ this._log('onAccessibilitySelectionChanged: cell: ' + cell + ', action: ' + action + ', name: ' + name); if (this._timeoutForA11yDescription) clearTimeout(this._timeoutForA11yDescription); - this._emptyArea(); + if (!this._isFormula()) + this._emptyArea(); var eventDescription = ''; if (action === 'create' || action === 'add') { this._hasAnySelection = true; diff --git a/browser/src/map/Map.js b/browser/src/map/Map.js index 486f8498415a..76708fcd3a8f 100644 --- a/browser/src/map/Map.js +++ b/browser/src/map/Map.js @@ -319,7 +319,8 @@ L.Map = L.Evented.extend({ initTextInput: function(docType) { var hasAccessibilitySupport = window.enableAccessibility && this._accessibilityState; - hasAccessibilitySupport = hasAccessibilitySupport && (docType === 'text' || docType === 'presentation'); + hasAccessibilitySupport = hasAccessibilitySupport && + (docType === 'text' || docType === 'presentation'|| docType === 'spreadsheet'); this._textInput = hasAccessibilitySupport ? L.a11yTextInput() : L.textInput(); this.addLayer(this._textInput); },