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

mdevaev left a comment (whatwg/fullscreen#232)

> It's possible to feature-check that the `keyboardLock` dictionary member is supported without going fullscreen like this: https://software.hixie.ch/utilities/js/live-dom-viewer/saved/14660

It turned out that if the test was failed, then the next legitimate transition to fullscreen mode for the allowed element is blocked (I suppose for security). In other words, I can't test the feature first and then immediately switch to fullscreen mode. But it is suitable for checking whether the keyboardLock options were used or not. I checked for FF151. That is, something better is needed for the initial check. But current solution is enough for my personal case.

In addition, it is not entirely clear which keys should be intercepted and which should not. In FF151, I checked that Ctrl+W and Alt+Tab are not intercepted, although Chromium does it. It's a bit off-top, but nevertheless I would like to mention it: https://bugzilla.mozilla.org/show_bug.cgi?id=2034292

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/pull/232?email_source=notifications&email_token=ACLYVMKUPDNG6XFFYBNAFJT4XLETXA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMZQHE4TMNBRGI2KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS2XA4S7MNXW23LFNZ2F633QMVXF6Y3MNFRWW#issuecomment-4309964124
You are receiving this because you are subscribed to this thread.

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

Received on Friday, 24 April 2026 02:13:19 UTC