Skip to content

Commit

Permalink
a11y: calc: make possible to enable/disable a11y for spreadsheets
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Cecchetti <[email protected]>
Change-Id: Iec00a71ad86e5d6114be9dc6864953284f66a0b0
  • Loading branch information
mcecchetti authored and timar committed Oct 26, 2023
1 parent dd4cb30 commit 24159ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion browser/src/layer/marker/A11yTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion browser/src/map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 24159ac

Please sign in to comment.