-
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
ComboBox has problems with Enter key #447
Comments
We can't put the guard in like it was before because we don't have access to the listener on the button side anymore, it is buried in the Rectangular push button. |
In ComboBox, this currently means that when the listbox is popped up, pressing the Return key changes the selection but does not dismiss the list. |
Here's an idea... Make the items in the list ( |
For now @pixelzoom and @zepumph just converted the
@pixelzoom's main question is "why does there need to be a difference between how "space" and "enter" keys are handled in general." @jessegreenberg what do you think about the conversion to |
Using We still have a significant problem here, which I described over in phetsims/scenery#939 (comment):
|
Deferred until the more general issue of how to handle Enter and Space is resolved, see phetsims/scenery#939. |
In the above commit, I added logging of a11y keyboard events for ComboBox and its components. Run Molarity with It would be great if everyone played around with this before our Wednesday 2/6 conference call, so that we're all up to speed on what the current behavior is. As noted in the TODO comments in the code, this logging should be removed when this issue is resolved. |
There are a few pieces to this issue, and there are multiple issues around scenery for tackling these problems. In phetsims/scenery@f1ce6d9 (above commit) @jessegreenberg and I fixed the most prominent bug so that the "keyup workaround" when clicking on the button and moving focus to the listbox. is working as expected. Whereas before it was still broken when used with the enter key. So the problem summed up in #447 (comment) is fixed now. Outline for work to be done (both in scenery generally and as it pertains to ComboBox directly):
|
@jessegreenberg @zepumph Nice solution in phetsims/scenery@f1ce6d9, ComboBox seems to be working as desired. The "work to be done" in #447 (comment) is covered by other issues, so... Do you think it would be OK to close this issue? And do you think it's OK to remove the |
@jessegreenberg @zepumph ping. |
Thanks @pixelzoom, yes this can be closed since it is being tracked in more general issues. It was helpful in discussion, but the |
|
There is one more TODO that I see for this issue: Line 130 in 1f28f82
I would like to see if it makes sense to change back to a keydown. I kinda don't think so, but I would like to investigate for a second. |
It doesn't sound like I need to be involved in this, so unassigning. |
I do not think that we would want keydown here. All of our buttons fire on keyup. And then we don't have the potential issues with keydown then triggering the button again after listbox selection. Ready to close for me! |
Like we have seen many times in a11y, when using the enter key we need to guard against letting the enter key click a listener, and then again click again on release once that listener focuses something else.
In comboBox this is complicated further because of #446.
The text was updated successfully, but these errors were encountered: