Skip to content

Keyboard Lock in requestFullscreen #1409

Open

Description

@jgraham

Description

The Fullscreen Keyboard Lock API adds an optional argument to requestFullscreen that allows websites to request that while they are in fullscreen, pressing the Escape key no longer exits fullscreen, and certain formerly-reserved browser hotkeys are allowed to be default-prevented.

This is common in gaming use cases. Whilst different browsers support similar functionality, there currently isn't universal alignment around the standard, making it harder for developers to produce interoperable pages without browser-specific codepaths.

Specification

https://fullscreen.spec.whatwg.org/#keyboard-locking

web-feature

No response

Test Links

https://wpt.fyi/results/fullscreen/api?label=master&label=experimental&aligned&q=keyboard-lock

Additional Signals

https://bugzilla.mozilla.org/show_bug.cgi?id=700123

Activity

  1. github-actions commented on Sep 18, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature Fullscreen API

    • ID: fullscreen
    • Name: Fullscreen API
    • Description: The fullscreen API makes a specific element fill the whole screen and hides most browser UI.
    • Baseline status: Limited Availability
    • Docs: Fullscreen API
    • Developer signals: 17 votes / 1 use case (details)
    • WPT tests: wpt.fyi results
    • More information: See the web-features explorer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions