非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
弃用
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the
兼容性表格
at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The deprecated
KeyboardEvent.keyIdentifier
read-only property returns a "key identifier" string that can be used to determine what key was pressed. Its non-deprecated replacement is
KeyboardEvent.key
.
Not part of any current specification.
This property was part of
an old draft of the DOM Level 3 Events Specification
, but it was removed in later drafts in favor of
KeyboardEvent.key
.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
keyIdentifier
弃用
非标
|
Chrome 26 — 54 | Edge ? | Firefox No | IE No | Opera 15 — 41 | Safari 5.1 | WebView Android ? — 54 | Chrome Android 26 — 54 | Firefox Android No | Opera Android ? — 41 | Safari iOS 5.1 | Samsung Internet Android 1.5 — 6.0 |
完整支持
不支持
兼容性未知
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。