You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When in full screen mode, Safari will play a "bonk" sound if any key is pressed other than "tab" and "enter"/"spacebar" on buttons.
The "bonk" stops playing if we add event.preventDefault() in the event listeners. It seems like we could either find some HTML attribute to add that stops this from happening (no idea if there is one) or hopefully move preventDefault() to a smart place that handles this generally.
The text was updated successfully, but these errors were encountered:
I discussed with @zepumph - we talked about having a place somewhere (like in A11yPointer) to call event.preventDefault when in full screen mode to generally prevent the "bonk" error sound. But this feels really risky. We need to avoid preventing default on tab, space, enter, escape keys at the very least. And there are probably many others too where we do NOT want to preventDefault.
I am going to look for attributes that might suppress this but if I cannot find any we will continue to use preventDefault in each case.
This first came up in phetsims/friction#167 and has come up again in phetsims/molarity#210 so we should see if we can find a general solution.
When in full screen mode, Safari will play a "bonk" sound if any key is pressed other than "tab" and "enter"/"spacebar" on buttons.
The "bonk" stops playing if we add
event.preventDefault()
in the event listeners. It seems like we could either find some HTML attribute to add that stops this from happening (no idea if there is one) or hopefully movepreventDefault()
to a smart place that handles this generally.The text was updated successfully, but these errors were encountered: