• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. KeyboardEvent
  4. KeyboardEvent.repeat
  • Change language

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility

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

BCD tables only load in the browser

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Feb 19, 2021, by MDN contributors

Change your language

Related Topics

  1. KeyboardEvent
  2. Constructor
    1. KeyboardEvent()
  3. Properties
    1. altKey
    2. This deprecated API should no longer be used, but will probably still work. charCode
    3. code
    4. ctrlKey
    5. isComposing
    6. key
    7. This deprecated API should no longer be used, but will probably still work. keyCode
    8. This API has not been standardized. This deprecated API should no longer be used, but will probably still work. keyIdentifier
    9. location
    10. metaKey
    11. repeat
    12. shiftKey
    13. This deprecated API should no longer be used, but will probably still work. which
  4. Methods
    1. getModifierState()
    2. This deprecated API should no longer be used, but will probably still work. initKeyboardEvent()
    3. This deprecated API should no longer be used, but will probably still work. initKeyEvent()
  5. Inheritance:
    1. UIEvent
    2. Event
  6. Related pages for DOM Events
    1. CompositionEvent
    2. Event
    3. EventListener
    4. EventTarget
    5. FocusEvent
    6. InputEvent
    7. MouseEvent
    8. MouseScrollEvent
    9. MouseWheelEvent
    10. MutationEvent
    11. ProgressEvent
    12. UIEvent
    13. WheelEvent
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies