repeat property
Gets a value that indicates whether a key was pressed and held.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
true if the key has been pressed and held; otherwise, false.
Standards information
- Document Object Model (DOM) Level 3 Events Specification, Section 5.2.6
Remarks
The first key event with a repeat property of true indicates the beginning of a long key press.
See also
Show:

