-
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
problems with a11y and time-based buttons #931
Comments
Transferred to scenery because hopefully we can come up with a general solution, since the current fire on hold is just supported by sun buttons. |
Relates to phetsims/sun#424. To @jessegreenberg and @zepumph, the main piece for this issue is to have scenery support these options. |
While discussing with @jessegreenberg yesterday, it came up that potentially a good place to put this functionality would be in |
We came back to this issue on 11/17/20: We discussed having a way to listen to both We also talked about being able to set the time between when the PressListener is pressed and when the PressListener is released in the However, we decided that it would be incorrect to use @jeseegreenberg and @zepumph think this is the right way forward, but had concerns that accessibility designers may disagree that time-based buttons should not be |
#1117 will track adding support for this, closing this issue. |
Noted while working on phetsims/sun#447, and it's probably the root cause. a11y doesn't seem to have any way to prevent
click
from firing multiple time when the Enter key is held down.PushButtonModel has these options:
These only pertain to the listener added via PushButtonModel
addListener
. A11y-specific listeners must currently be added viaaddInputListener
, and have no knowledge of this fire-only-hold feature.Example:
Since the default is
fireOnHold: false
, theclick
callback should fire once. But if you press and hold the Enter key, it will continue to fire until you release the Enter key.The text was updated successfully, but these errors were encountered: