Closed Luisav1 closed 1 month ago
Thanks @Luisav1!
The relevant file here is KeyboardEventForwarding. Around here:
If running a downloaded file locally, there will be a cross-origin permissions issue.
Some questions for the phet-io team: 1) Can we skip forwarding events if the origins don't match? 2) Is this an expected use case for PhET-iO? 3) Is this a problem for many sims that will require a maintenance release?
Is this being launched with file://
or http://
?
I just tried to reproduce the problem by following the steps in "Steps to Reproduce". It loads with file://
.
1) I don't see any errors in the console in Edge and Chrome. But global keyboard input only works if focus is inside the sim.
2) In Firefox, global keyboard commands work great, regardless of where focus is. No errors.
@zepumph would be good to consult with here. We worked on a related issue recently.
A few things:
Given these observations, I think this issue should not block publication of the next Greenhouse Effect release. I'll assign this to @arouinfar to see if she concurs. If she does, this should be passed on to @jessegreenberg and @zepumph for next steps (I've discussed this with @jessegreenberg) and the issue should either be moved to a common code repo or closed in favor of a new one.
Sounds good @jbphet
OK, thanks! Ill open an issue in phet-io-wrappers for follow up and close this issue.
Issue has been created, closing.
Test Device
Windows PC
Operating System
Windows 11
Browser
Firefox, Chrome, Microsoft Edge
Problem Description
For https://github.com/phetsims/qa/issues/1080. An exception related to the "KeyboardEvent" property appears in the console. This doesn't affect anything else, keyboard navigation still worked well before and after this message. However, it did pop up the debugger in Chrome, but keyboard navigation works fine once you exit out of that.
Message in Firefox:
Message in Chrome and Edge:
Steps to Reproduce
index.html
Visuals
Firefox:![image](https://github.com/phetsims/greenhouse-effect/assets/52978048/be12d7d3-cfde-435f-bba7-1a7ee75cd772)
Chrome:![image](https://github.com/phetsims/greenhouse-effect/assets/52978048/aae6de80-12b9-44a0-aaf0-160f4517a4d3)
Edge:![image](https://github.com/phetsims/greenhouse-effect/assets/52978048/6e3465d2-cd39-47c1-88df-e82f3271a0c2)