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
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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
repeat | Chrome Full support Yes | Edge Full support 79 | Firefox Full support 28 | IE No support No | Opera Full support Yes | Safari Full support 10.1 | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support 28 | Opera Android Full support Yes | Safari iOS Full support 10.3 | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- No support
- No support