我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

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 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.

文档标签和贡献者

此页面的贡献者: mdnwebdocs-bot, mfuji09, jpmedley
最后编辑者: mdnwebdocs-bot,