KeyboardEvent.repeat

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

语法

var repeat = event.repeat;

规范

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
KeyboardEvent.repeat
Working Draft Initial definition.

兼容性

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? (Yes) 28 (28) ? ? ?
Feature Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? (Yes) 28.0 (28) ? ? ?

文档标签和贡献者

标签: 
 此页面的贡献者: maicss
 最后编辑者: maicss,