Limited Availability
Keyboard lock
The
navigator.keyboard.lock() API allows you to capture keys that are normally reserved by the operating system. It can be used to provide an immersive fullscreen experience such as games.
Baseline Status:
This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Jan 15, 2020.
Desktop Browser Engine Support
Google Chrome
68
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
79
Supported
Mobile Browser Engine Support
Chrome Android
68
Firefox Android
—
Safari iOS
—
Specifications and References
id: keyboard-lock