The repeat read-only property of the KeyboardEvent interface returns a Boolean that is true if the given key is being held down such that it is automatically repeating.


var repeat = event.repeat;

Return value



Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'KeyboardEvent.repeat' in that specification.
Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support YesEdge No support NoFirefox Full support 28IE No support NoOpera ? Safari Full support 10.1WebView Android ? Chrome Android ? Edge Mobile No support NoFirefox Android Full support 28Opera Android ? Safari iOS Full support 10.1Samsung Internet Android ?


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Contributors to this page: mfluehr, fscholz, craigkovatch, zarqman, Yaffle, libbymc, teoli, cvrebert
Last updated by: mfluehr,