-
Notifications
You must be signed in to change notification settings - Fork 2
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
Holding down spacebar doesn't result in continuous kicks #84
Comments
I am able to reproduce this behavior. @jessegreenberg is this behaving as expected? How should we proceed? |
@jessegreenberg can you help us estimate effort for this issue? |
Sorry, I don't have a good solution for this. Press and hold functionality of RectangularPushButton (and therefore PushButtonModel) is not supported with alt input yet. Also, I noticed that if you press and hold the enter key it will queue up many events - one for each The general work for this issue is in phetsims/scenery#1117. It looks like sun has its own "fire on hold" implementation separate from scenery, so whatever we do there will probably need to be done in sun too. I would want about a day to solve this problem (3-5 story points?), going into the PressLIstener/FIreListener stack, PushButtonModel/sun stack, and whether the solution needs to support screen reader access may complicate it too. Ill leave my assignment, I might be able to work on this the second week of this iteration. @samreid back to you to review, and what is the timeline for CaV? |
I think it is OK if enter auto-repeats but spacebar does not. @jessegreenberg what do you recommend? Should we ask the designers if this is acceptable? |
Sure, I'd recommend checking with design team. The difference between enter and spacebar seems OK to me. The fact that the fire interval for enter is so fast is what feels worse to me (holding down for ~1 second kicks all the balls). |
In today's discussion, we discussed that sometimes users with motor disabilities will enable "sticky keys" or windows or adjust the firing rate (windows and other platforms), so we think this will be OK. We are also OK that spacebar doesn't repeat. Closing. |
Test device
MacBook Air (m1 chip)
Operating System
12.2.1
Browser
safari and chrome
Problem description
For phetsims/qa#781:
I know that only a basic version of keyboard nav was enabled at this point, but I think that holding down the spacebar should produce continuous kicks in the same way that clicking and holding on the mouse does. As of now, you have to press the spacebar each time to produce a kick.
Pressing and holding down the 'return' key produces continuous kicks.
Looking at the keyboard dialogs in BASE and Friction, the spacebar is usually used to press buttons.

The text was updated successfully, but these errors were encountered: