Keyboard Lock

While in fullscreen, this API allows apps to receive keys that are normally handled by the system or the browser like Cmd/Alt-Tab, or Esc. Users can escape keyboard lock (and fullscreen) by holding the Esc key for two seconds.

Comments

The feature is useful for any immersive application that wants access to keys not normally available to websites. Examples include games that want to disable the default behaviour of the Windows key (which would normally open the Windows start menu) or the Escape key (which would normally exit full-screen mode), or remote desktop applications that want to send key combinations like Alt+Tab to a remote computer rather than processing them locally.

Demo

Documentation

Specification

Editor's draft

Status in Chromium

Blink>Input


Enabled by default (tracking bug) in:

  • Chrome for desktop release 68
  • Opera release 55

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No public signals
  • No public signals
  • No public signals
  • No signals

Owners

Last updated on 2018-05-24