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.


var keyboard = navigator.keyboard


A Keyboard object.


Specification Status Comment
Keyboard Map
The definition of 'keyboard' in that specification.
Editor's Draft Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.navigator.keyboard" (depth: 1) to the MDN compatibility data repository.