Navigator.keyboard
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The keyboard
read-only property of the Navigator
interface returns a Keyboard
object which provides access to functions that retrieve keyboard layout maps and toggle capturing of key presses from the physical keyboard.
Syntax
var keyboard = navigator.keyboard
Value
A Keyboard
object.
Specifications
Specification |
---|
Keyboard Lock # h-navigator-keyboard |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
keyboard |
68 |
79 |
No |
No |
55 |
No |
68 |
No |
No |
No |
No |
No |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/keyboard