W3cubDocs

/Web APIs

KeyboardEvent: repeat property

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.

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

Value

A boolean value.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
repeat
137Before Chrome 139, on Linux under X11, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
32–137On Windows and Linux, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
12 28
121Before Opera 123, on Linux under X11, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
19–121On Windows and Linux, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
10.1
137Before Chrome Android 139, on Linux under X11, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
32–137On Windows and Linux, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
28
90Before Opera Android 91, on Linux under X11, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
19–90On Windows and Linux, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
10.3
2.0On Windows and Linux, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
137Before WebView Android 139, on Linux under X11, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
4.4.3–137On Windows and Linux, if multiple keys are held down, a keydown event for the most recently pressed key will trigger with repeat incorrectly set to false. See bug 40940886.
10.3

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat