Skip to content

Fullscreen state is not updated when exiting fullscreen by Esc on web #1536

@kkoreilly

Description

@kkoreilly

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlyconfirmedThis bug has been confirmedlow priorityLower priority; do eventually but not urgent

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions