standards-support icon indicating copy to clipboard operation
standards-support copied to clipboard

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

Open Epic-Third-Party-Bug-Reporting opened this issue 2 years ago • 3 comments

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:

                           
            

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

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

JAWS-test avatar Sep 24 '23 08:09 JAWS-test

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

stevefaulkner avatar Nov 14 '23 14:11 stevefaulkner

Providing a CodePen of the above code:

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