KennethSundqvist / key-jump-browser-extension

Easier keyboard navigation. No mouse needed to click on links and stuff.
66 stars 14 forks source link

findHints: Detect elements by accessibility role = button/link #72

Open avshalomt opened 1 year ago

avshalomt commented 1 year ago

Sometimes modern apps don't use the actual <button /> or <input type="button / submit" /> elements, but other (e.g. <div />) tags with a click event. In those cases, the app might add the ARIA-role to help screen-readers to detect an element is clickable. See here.

This PR makes the extension detect those elements using ARIA-role. image

avshalomt commented 1 year ago

@KennethSundqvist Hi, I made this because sometimes modern apps don't use the actual <button /> or <input type="button / submit" /> elements, but other (e.g. <div />) tags with a click event. In those cases, the app might add the ARIA-role to help screen-readers to detect an element is clickable. See here.