KeyboardEvent.repeat
**KeyboardEvent.repeat
**是一个只读属性,返回一个布尔值Boolean
,如果按键被一直按住,返回值为true
。
语法
var repeat = event.repeat;
规范
Specification |
---|
UI Events # dom-keyboardevent-repeat |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
repeat |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.