-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent a11y events after focus changes #942
Comments
I wonder if we can use this somehow: https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail
EDIT: in cases like https://jsfiddle.net/9owd5L3m/1/, event.detail is always zero as focus jumps between the two buttons. |
I can't think of any way to catch this generally. The click events that are triggered on each button have no knowledge of each other even though they were initiated from the same key press. As a side note, I also noticed that this accessible combo box example from W3C has the same issue: |
If we can't catch this generally for all events, maybe our best option is to do this for certain events like |
That sounds like a reasonable approach to investigate. And ideally, that would be handled by scenery. |
@zepumph and I took a look at this last night, we made a change to A11yPointer that aborts the |
discussed here: phetsims/scenery#942
From #939 @pixelzoom said
And this issue is not specific to
keyup
but for most alternative input events likeclick
, see https://jsfiddle.net/3bgkcdes/We should try to find a general solution to this problem. A solution that works with screen readers may be difficult to find because we usually don't receive
keyup
keydown
events whenclick
is sent.The text was updated successfully, but these errors were encountered: