Skip to content

Should not release pointer lock when pressing esc while fullscreen keyboard lock is active #110

Description

@zcorpan

https://w3c.github.io/pointerlock/#security says

Esc key should exit pointer lock with the user agent's pointer-lock target.

whatwg/fullscreen#232 introduces a keyboard lock option for requestFullscreen(). Chromium supports a separate API for keyboard lock.

I think it makes sense to not release the pointer lock when pressing esc if keyboard lock is active. Otherwise, the user experience for games is not ideal (e.g. if pressing esc opens and closes the in-game menu).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions