FreedomScientific / standards-support

Contains documentation for Vispero software support of Web standards
https://freedomscientific.github.io/standards-support/
GNU General Public License v3.0
105 stars 11 forks source link

Click handler called repeatedly when holding space or enter key on an expand/collapse button #762

Open Epic-Third-Party-Bug-Reporting opened 9 months ago

Epic-Third-Party-Bug-Reporting commented 9 months ago

Summary

When JAWS is running, holding Enter or Space bar will repeatedly call the click handler on an expand/collapse button, switching the expanded state back and forth while the key is held.

Expected result

click handler event should only occur on key up, and not occur repeatedly while key is held

Actual result

click handler is called repeatedly, causing the button to change states and section to expand/collapse quickly when holding space or enter key

Example

Raw HTML example of a button that has this behavior:

<!DOCTYPE html>

                               Collapse All                               

According to all known laws of aviation, there is no way a bee should be able to fly. It's wings are too small to get its fat little body off the ground. The bee, of course, flies anyway, because bees don't care what humans think is impossible.

        
               

Additional Information

JAWS version and build number

JAWS 2022

Operating System and version

Browser and version:

Chrome

JAWS-test commented 9 months ago

The source code of your example is incomplete. Please post here correctly or link directly to an example

stevefaulkner commented 7 months ago

@Epic-Third-Party-Bug-Reporting please provide a working test case

Epic-Third-Party-Bug-Reporting commented 2 months ago

Providing a CodePen of the above code:

https://codepen.io/Epic-Third-Party-Bug-Reporting/pen/WNWqoEZ