Forum Discussion
PaulDeHorn
8 years agoCommunity Member
Change Text Entry Variable without control losing focus?
Does anyone know of a way to change a text entry variable without control losing focus first? I'm simulating software behavior where as soon as a number is typed a description appears. Currently, I ...
GavinElliott-89
3 years agoCommunity Member
Array.from(document.querySelectorAll('.acc-textinput')).forEach(el => {
el.ariaHidden = 'true';el.addEventListener('keyup', () => {
el.blur();
el.focus();
})
});
There may be a way to amend the code to take that into account—see above. Setting an element's attribute to 'aria-hidden="true"' should prevent screen readers from announcing anything relating to that element.
I don't know exactly how Storyline is set up for screenreaders so the above may/may not work. It's worth a try.
Let us know how you get on.