core
core copied to clipboard
Fullscreen state is not updated when exiting fullscreen by Esc on web
Describe the bug
When you press the Esc key to exit fullscreen on web, we do not realize that has happened, and thus the context menu action for fullscreen still does Exit fullscreen. We need to do addeventlistener on the fullscreen state somehow.
How to reproduce
Go to the docs, right click, click Window -> Fullscreen, press escape, and then right click and observe Window has Exit fullscreen instead of Fullscreen.
Example code
Relevant output
Platform
Web