nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.11k stars 637 forks source link

aria-live="polite" does not act as W3 Reports in Tutorials #8908

Open frastlin opened 6 years ago

frastlin commented 6 years ago

Steps to reproduce:

Visit: https://www.w3.org/WAI/tutorials/forms/notifications/#during-typing

and type in the first field under the heading "Approach 2: During typing".

Actual behavior:

OK is announced after every key press, no matter how fast the user types.

Expected behavior:

From the description of the example: "The value “polite” de-emphasizes the importance of the message and does not cause screen readers to interrupt their current tasks to read aloud this message. Thus the message is only read once when the user stops typing rather than on every keystroke that the user makes."

System configuration:

NVDA Installed/portable/running from source:

Installed

NVDA version:

Version: 2018.3.2

Windows version:

Windows 10 64 Pro

Name and version of other software in use when reproducing the issue:

Firefox: 63.0.1 (64-bit)

Have you tried any other versions of NVDA?

no

Brian1Gaff commented 6 years ago

How would it know you have stopped an not just a slow typist. Seems a strange idea.

Brian

bglists@blueyonder.co.uk Sent via blueyonder. Please address personal E-mail to:- briang1@blueyonder.co.uk, putting 'Brian Gaff' in the display name field.


frastlin commented 6 years ago

There are a couple ways of figuring this out:

  1. take the average typing speed and use that, according to the first Google result for average typing speed most people type 200 CPM which is around 30 MS.
  2. NVDA could track typing speed because that is something that is probably very easy for NVDA and it would be inclusive of slow typers.
  3. I think maybe a better solution may be to wait a longer time, like 100-200 ms after a keypress before alerting someone, rather than looking at the average typing speed. That way, one can type slower than normal, like when typing a number in the middle of letters or when thinking about an answer which may slow down typing slightly. One could also adjust this setting in the settings dialogue.
  4. Alternatively, there could be a slight beep when a polite alert is presented and if I want to hear it, I can press a key combination to hear it, or wait a longer time after finishing typing (like 500 ms or 1 second).
  5. Stop keys, such as tab, NVDA+space, or escape can trigger the alert as well.
Adriani90 commented 5 months ago

It seems with NVDA 2024.2 Beta and Firefox 126, only the "check" message of the inner html element is reported repeatedly on every key press. The "ok" message is reported only once when typing the first letter in the user name edit field. In Chrome, both "check" and "ok" are reported only once when typing the first letter. el.parentNode.querySelector('span').innerHTML = "✓";

@jcsteh any idea why Firefox behaves differently here when reporting the inner HTML message?