这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
keyboard
只读特性在
Navigator
interface returns a
键盘
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 Map
The definition of 'keyboard' in that specification. |
编者草案 | 初始定义。 |
No compatibility data found. Please contribute data for "api.navigator.keyboard" (depth: 1) to the MDN 兼容性数据存储库 .
Navigator
activeVRDisplays
appCodeName
appName
appVersion
battery
buildID
clipboard
connection
cookieEnabled
credentials
deviceMemory
doNotTrack
geolocation
keyboard
语言
languages
locks
maxTouchPoints
mediaDevices
mediaSession
onLine
oscpu
permissions
platform
product
productSub
serviceWorker
userAgent
vendor
vendorSub
webdriver
xr