Skip to content

FF151 Element.requestFullScreen() option.keyboardLock docs#43884

Merged
pepelsbey merged 7 commits intomdn:mainfrom
hamishwillee:ff151_requestfullscreen_keyboardlock
May 8, 2026
Merged

FF151 Element.requestFullScreen() option.keyboardLock docs#43884
pepelsbey merged 7 commits intomdn:mainfrom
hamishwillee:ff151_requestfullscreen_keyboardlock

Conversation

@hamishwillee
Copy link
Copy Markdown
Collaborator

@hamishwillee hamishwillee commented Apr 21, 2026

FF151 adds support for the options.keyboardlock property to be passed in the options object to Element.requestFullScreen() in https://bugzilla.mozilla.org/show_bug.cgi?id=2032302.
This allows use cases such as games to use the Esc key (say) without exiting full screen mode.

The PR updates the docs for Element.requestFullScreen() with the new option and a new example.

It also fixes up layout issues and restructures the document to current standards - adding things like permissions policy integration and so on.

Note that right now the standard is in flux. This is broadly supprted on both FF and Safari in the same way, but things like what key is pressed to exit keyboard lock, what additional keys are intercepted, and so on, are not specified at all (and not likely to be).

Related docs work can be tracked in #43868

@github-actions github-actions Bot added the Content:WebAPI Web API docs label Apr 21, 2026
@github-actions github-actions Bot added the size/m [PR only] 51-500 LoC changed label Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Preview URLs (1 page)

(comment last updated: 2026-05-08 00:03:00)

Comment thread files/en-us/web/api/element/requestfullscreen/index.md
@hamishwillee hamishwillee marked this pull request as ready for review April 27, 2026 06:01
@hamishwillee hamishwillee requested a review from a team as a code owner April 27, 2026 06:01
@hamishwillee hamishwillee requested review from pepelsbey and removed request for a team April 27, 2026 06:01
@hamishwillee hamishwillee force-pushed the ff151_requestfullscreen_keyboardlock branch 2 times, most recently from 490d761 to 6380870 Compare May 5, 2026 01:52
Copy link
Copy Markdown
Member

@pepelsbey pepelsbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you 🙂

A few suggestions, mostly for consistency.

Comment thread files/en-us/web/api/element/requestfullscreen/index.md Outdated
Comment thread files/en-us/web/api/element/requestfullscreen/index.md Outdated
Comment thread files/en-us/web/api/element/requestfullscreen/index.md Outdated
@hamishwillee hamishwillee requested a review from pepelsbey May 7, 2026 23:59
@hamishwillee hamishwillee force-pushed the ff151_requestfullscreen_keyboardlock branch from f2b9e61 to 39c2307 Compare May 7, 2026 23:59
@hamishwillee
Copy link
Copy Markdown
Collaborator Author

Thanks @pepelsbey - Agree with/accepted all your suggestions. Ready for another look.

Comment thread files/en-us/web/api/element/requestfullscreen/index.md Outdated
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Member

@pepelsbey pepelsbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thank you

@pepelsbey pepelsbey merged commit 0383405 into mdn:main May 8, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants