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

Accessibility JAWS button keydown Event not firing when "Enter" or "Space" keys are pressed #829

Open kaukeshav opened 1 month ago

kaukeshav commented 1 month ago

Summary

With JAWS enabled button tag keydown event listener isn't working with "Enter" and "Space" keys.

Reproduce with the following steps:

  1. Go to https://codepen.io/Keshav-Kaushik/pen/eYoqVOE
  2. Use tab keys to reach "Keydown Button" with JAWS enabled
  3. Now, either press "Space" or "Enter" key. Check if the console prints keydown event or not. Follow the same for click button.

Expected result

Actual result

Example

Code pen link below to test both "onclick" and "onkeydown" event listeners with and without JAWS enabled.

https://codepen.io/Keshav-Kaushik/pen/eYoqVOE

JAWS version and build number

JAWS 2023

Browser and version:

Chrome

JAWS-test commented 1 month ago

By default, JAWS converts key events into click events. If device-independent event handlers are used, there are no problems. The conversion of events can be deactivated in the JAWS settings.