Re: [whatwg/fullscreen] Add keyboard locking option (PR #232)

zcorpan left a comment (whatwg/fullscreen#232)

I think having the keyboard lock flag on `Document` doesn't work well, because a document can have multiple fullscreened elements, and `document.exitFullscreen()` only unfullscreens the fullscreen element, it doesn't fully exit fullscreen. Elements have a [fullscreen flag](https://fullscreen.spec.whatwg.org/#fullscreen-flag). If the keyboard lock flag is also on elements, it's possible to set the keyboard lock state correctly when unfullscreening an element in the multiple fullscreened elements case.

Demo: https://software.hixie.ch/utilities/js/live-dom-viewer/saved/14667

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/pull/232#issuecomment-4266321971
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fullscreen/pull/232/c4266321971@github.com>

Received on Friday, 17 April 2026 07:56:08 UTC