diff --git a/docs/Api_Methods.md b/docs/Api_Methods.md index 084afc4d3..8b2a99e9e 100644 --- a/docs/Api_Methods.md +++ b/docs/Api_Methods.md @@ -252,6 +252,10 @@ mathField.typedText('x=-b\\pm \\sqrt b^2 -4ac'); Specify an [ARIA label][`aria-label`] for this field, for screen readers. The actual [`aria-label`] includes this label followed by the math content of the field as speech. Default: `'Math Input'` +## .setTabbable(tabbable) + +Specify whether this field should be in the tab order. + ## .getAriaLabel() Returns the [ARIA label][`aria-label`] for this field, for screen readers. If no ARIA label has been specified, `'Math Input'` is returned. diff --git a/docs/Config.md b/docs/Config.md index e338a805f..ecbb5b4e5 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -14,9 +14,8 @@ The configuration options object is of the following form: autoCommands: 'pi theta sqrt sum', autoOperatorNames: 'sin cos', maxDepth: 10, - substituteTextarea: function(tabbable) { + substituteTextarea: function() { const textarea = document.createElement('textarea'); - textarea.setAttribute('tabindex', tabbable ? '0' : '-1'); return textarea; }, handlers: { @@ -125,8 +124,6 @@ You can also specify a speech-friendly representation of the operator name by su `substituteTextarea` is a function that creates a focusable DOM element that is called when setting up a math field. Overwriting this may be useful for hacks like suppressing built-in virtual keyboards. It defaults to `