fullscreen icon indicating copy to clipboard operation
fullscreen copied to clipboard

Keyboard lock

Open martinthomson opened this issue 7 months ago • 13 comments

What problem are you trying to solve?

Fullscreen applications might want to access keys that would ordinarily break out of the full screen state. For instance, games often use the ESC key to access menus, remote desktop applications often use keyboard shortcuts for app switching. Having these actions sent to the site, rather than the local system might be desirable.

What solutions exist today?

Google previously proposed https://github.com/WICG/keyboard-lock/

How would you solve it?

I made a proposal a long time ago here: https://docs.google.com/document/d/191YzTVJRg4mIkAYCHYbDYFugO4xiLw6xE_lDuUOfItQ/edit?usp=sharing

Some of those details might change in discussion. For instance, I consider points made by others (in comments on that document) about system key lockout to be convincing.

Anything else?

I'm making this contribution here to make clear that this proposal is covered by Mozilla's commitment to the WHATWG IPR policy. My intention is not to drive this work, but am willing to support someone who wants to pursue it.

martinthomson avatar Nov 30 '23 00:11 martinthomson