Keyboard lock
Limited availability
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.
Learn more
Specifications
- Keyboard Lock, from Web Platform Incubator Community Group (W3C).
Browser support
- Chrome 68 Released on 2018-07-24
- Chrome Android 68 Released on 2018-07-24
- Edge 79 Released on 2020-01-15
- Firefox ❌ Vendor position
- Firefox for Android ❌ Vendor position
- Safari ❌ Vendor position (concerns: compatibility, internationalization, security, integration, portability, API design, annoyance, device independence, accessibility, dependencies)
- Safari on iOS ❌ Vendor position (concerns: compatibility, internationalization, security, integration, portability, API design, annoyance, device independence, accessibility, dependencies)
Usage (according to Chrome Platform Status)
~0.008% of page loads. More data at chromestatus.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist