-
Notifications
You must be signed in to change notification settings - Fork 0
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
Keyboard-based interaction with laser and particle source buttons is incorrect #128
Comments
My initial investigation on this is making it look like more of a common code issue. I'm not seeing any obvious options to control this behavior, and other places where this type of button is being used have the same behavior reported above, namely that the space bar has to be pressed and released once to push the button down, then pressed and released again to release the button. I'm seeing this in the "pH Scale" sim and in the EyeDropperNode demo in the scenery-phet test app. |
I believe that the central issue tracking this problem is phetsims/sun#796. I hope that is helpful. |
I discussed this issue with various members of the dev team over Slack, and based on what I learned there I set up a meeting with @jessegreenberg, who seemed to know the most about keyboard-button interaction. There I learned that he and @terracoda had worked quite a bit to refine the keyboard interaction with PhET's buttons, and probably our best option in this case is to use a push button instead of the momentary button or toggle button that are available as options for the |
I've reviewed the updated keyboard interaction behavior in a meeting with the design team and, while they would have preferred to be able to fire the photon on a press of the space bar instead of a release, they said the behavior after the commits above was acceptable. There is one odd thing we would like to correct in the common code long term: Pressing and holding the Enter key results in very rapid continuous firing of the button listener. Adding a value for the
So hopefully, once phetsims/scenery#1117 is fixed, this can be adjusted so that holding down the Enter key results in a better behavior. |
I'm tempted to simply close this, but I thought it wise to have @arouinfar try it out and make sure we're good with this behavior. |
Over Slack, @kathy-phet said:
The text was updated successfully, but these errors were encountered: