KeyboardEvent.repeat
        
        
          
                Baseline
                
                  2025
                
                
              
        
        Newly available
        
          
                
              
                
              
                
              
        
        
      
      Since May 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
**KeyboardEvent.repeat**是一个只读属性,返回一个布尔值Boolean,如果按键被一直按住,返回值为true。
语法
var repeat = event.repeat;
规范
| Specification | 
|---|
| UI Events> # dom-keyboardevent-repeat> | 
浏览器兼容性
Loading…