From f67040225fb71dabe486e15ed20f14485f4777b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Fri, 8 Dec 2023 16:34:28 +1100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Martin Thomson --- fullscreen.bs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/fullscreen.bs b/fullscreen.bs index 31aa65a..7b3319a 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -688,9 +688,9 @@ iframe:fullscreen { -

keyboard locking

+

Keyboard Locking

-

keyboard Locking enhances the functionality of web applications running in fullscreen by allowing +

Keyboard locking enhances the functionality of web applications running in fullscreen by allowing them to intercept certain key inputs that would typically be handled by either the system or the 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. @@ -704,20 +704,26 @@ web application in fullscreen.

Application-level keyboard lock
-

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). +

Captures all keys that the user agent would ordinarily receive, such as those that open or + close windows. This excludes those reserved for system-level interactions, such + as key presses that open system menus or switch applications.

System-level keyboard lock

Capture a wider range of keys, including those used for system-level navigation and shortcuts (e.g., Alt+Tab), subject to user consent and user agent implementation.

+

User agents should reserve an additional input for the purposes of exiting fullscreen. +There are also some system-level key sequences or combinations that cannot be +intercepted for security reasons, such as Ctrl+Alt+Del on Windows. +

To run the release the keyboard lock steps for a document document, run these steps:

  1. If the [=keyboard lock flag=] for the document is not set, abort these steps.

  2. Deactivate the keyboard lock and restore the handling of keyboard inputs to the default - behavior of the user agent and the operating system.

  3. Set the [=keyboard lock flag=] for + behavior of the user agent and the operating system. +

  4. Set the [=keyboard lock flag=] for the document to false.