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

@marcoscaceres commented on this pull request.



> +user agent. This is useful in scenarios such as gaming or remote desktop applications, where keys
+like ESC or function keys are integral to the application's functionality.
+
+<p>A <dfn>keyboard lock</dfn> enables web applications to capture and handle key inputs directly,
+bypassing the default behavior typically executed by the user agent (in the case of
+"{{FullscreenKeyboardLock/application}}") or operating system (in the case of
+"{{FullscreenKeyboardLock/system}}"). When the [=keyboard lock flag=] is set for a [=document=], key
+events that would normally trigger user agent or system-level actions are instead redirected to the
+web application in fullscreen.
+
+<dl>
+  <dt><dfn>Application-level keyboard lock</dfn></dt>
+  <dd><p>Captures all keys that the user agent would ordinarily receive, except those reserved for
+  critical system functions or security shortcuts (e.g., Ctrl+Alt+Del).
+  <dt><dfn>System-level keyboard lock</dfn></dt>
+  <dd><p>capture a wider range of keys, including those used for system-level navigation and

```suggestion
  <dd><p>Capture a wider range of keys, including those used for system-level navigation and
```

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

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

Received on Wednesday, 6 December 2023 07:42:42 UTC