Skip to content

FF151 Fullscreen Keyboard Lock API#29548

Open
hamishwillee wants to merge 1 commit intomdn:mainfrom
hamishwillee:ff151_element_requestfullscreen_keyboardlock_option
Open

FF151 Fullscreen Keyboard Lock API#29548
hamishwillee wants to merge 1 commit intomdn:mainfrom
hamishwillee:ff151_element_requestfullscreen_keyboardlock_option

Conversation

@hamishwillee
Copy link
Copy Markdown
Contributor

@hamishwillee hamishwillee commented Apr 27, 2026

FF151 supports the Fullscreen Keyboard Lock API in https://bugzilla.mozilla.org/show_bug.cgi?id=2032302 (implementation in https://bugzilla.mozilla.org/show_bug.cgi?id=700123).

This is the addition of a keyboardLock option (to the options parameter) that can take the values none or browser to the Element.requestFullScreen(). This is also supported by Safari 26.4 (search keyboard lock) but not yet by Chrome (https://issues.chromium.org/issues/505427218).

Safari has an extra option system that means the same as none (does nothing). I have not captured that because it isn't in the prospective spec.

The spec for this has not landed, but seems to be heading towards some kind of agreement as we speak. whatwg/fullscreen#232

Given that I gave marked this non-standard - and the fact is I am not sure yet exactly what it will end up doing. I.e whether anything that counts as "compatibility" will change.

  • For example, keyboard lock can be disabled on supporting browsers by long-pressing Esc, but this is not mandated by the spec, and might end up being something that is.
  • The keys that are passed to the handlers in lock mode depends on the implementation. Not sure if we need to document then.
  • On FF the normal Esc key mechanism of leaving fullscreen is replaced by long press. One Safari either works - you're expected to disable the Esc key if you don't want it to close the fullscreen mode.

Related docs work can be tracked in mdn/content#43868

@github-actions github-actions Bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed labels Apr 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant