Closed zepumph closed 7 months ago
Hydrogen MR has been applied this fix to these sims:
center-and-variability 1.1
greenhouse-effect 1.2
my-solar-system 1.3
Next step for me is testing.
@jessegreenberg is going to take another look at KeyboardListener
to make sure this is feeling good. We don't really want to change the behavior of 'tab' to also cover 'shift+tab' because that is weird, but we feel it's likely this could come up again. Let's at least add some documentation.
Sorry about this issue! Thank you for including a fix in the recent maintenance release. I reviewed usages of KeyboardListener
and do not see any other problem cases. I added pitfall documentation to KeyboardListener about this.
Leaving open as needed to track the MR but removing my assignment.
For QA to test:
Tab navigate to a combo box and open it with the keyboard. While on items in the list box, shift tab should close the list box and focus the item before the combo box. It should not go to the previous item in the list.
This was confirmed fixed by QA for all MR sims with a Combo Box. Closing
Discovered with @jessegreenberg over in https://github.com/phetsims/sun/issues/859. We found that ComboBoxListBox was using 'tab' as a key to close the list box, but the new KeyboardListener (added to combo box in https://github.com/phetsims/sun/commit/756d2ef0899b813504b81a654b63b0618795badd) caused an issue because we weren't listening to 'shift+tab' in addition.
The fix for the ComboBoxListBox case is:
The only other usage of this that is likely a problem is in Dialog.