此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

KeyboardEvent.repeat

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

**KeyboardEvent.repeat**是一个只读属性,返回一个布尔值Boolean,如果按键被一直按住,返回值为true

语法

var repeat = event.repeat;

规范

Specification
UI Events
# dom-keyboardevent-repeat

浏览器兼容性