• Skip to main content
  • Skip to search
  • Skip to select language
    • 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 value that is true if the given key is being held down such that it is automatically repeating.

Syntax

var repeat = event.repeat;

Return value

A boolean value

Specifications

Specification
UI Events
# dom-keyboardevent-repeat

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

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

Last modified: Sep 14, 2021, by MDN contributors

Change your language

Related Topics

  1. KeyboardEvent
  2. Constructor
    1. KeyboardEvent()
  3. Properties
    1. altKey
    2. charCode
    3. code
    4. ctrlKey
    5. isComposing
    6. key
    7. keyCode
    8. keyIdentifier
    9. location
    10. metaKey
    11. repeat
    12. shiftKey
  4. Methods
    1. getModifierState()
    2. initKeyboardEvent()
    3. 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. MutationEvent
    10. ProgressEvent
    11. UIEvent
    12. WheelEvent
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

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

  • Terms
  • Privacy
  • Cookies