KeyboardEvent.repeat

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.

Syntax

var repeat = event.repeat;

Return value

Boolean

Specifications

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
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
repeatChrome Full support YesEdge Full support 12Firefox Full support 28IE No support NoOpera Full support YesSafari Full support 10.1WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 28Opera Android Full support YesSafari iOS Full support 10.1Samsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support