• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • 参考手册
    • 概述 / Web 技术

      适用于开发者的 Web 技术参考手册

    • HTML

      Web 内容的结构

    • CSS

      用于描述文档样式的代码

    • JavaScript

      通用脚本语言

  • 开发指南
    • 概述 / MDN 学习区

      学习 Web 开发

    • MDN 学习区

      学习 Web 开发

    • HTML

      学习使用 HTML 构建 Web 内容

    • CSS

      学习使用 CSS 设置内容样式

    • JavaScript

      学习在浏览器中运行脚本

  • 更多中文网
  1. 面向开发者的 Web 技术
  2. 网络 API
  3. KeyboardEvent
  4. repeat

目录

  • Value
  • Specifications
  • Browser compatibility
  1. UI Events
  2. KeyboardEvent
  3. Constructor
    1. KeyboardEvent()
  4. Instance properties
    1. altKey
    2. charCode Deprecated
    3. code
    4. ctrlKey
    5. isComposing
    6. key
    7. keyCode Deprecated
    8. keyIdentifier Non-standard Deprecated
    9. location
    10. metaKey
    11. repeat
    12. shiftKey
  5. Instance methods
    1. getModifierState()
    2. initKeyboardEvent() Deprecated
    3. initKeyEvent() Non-standard Deprecated
  6. Inheritance
    1. UIEvent
    2. Event
  7. Related pages for UI Events
    1. CompositionEvent
    2. FocusEvent
    3. InputEvent
    4. MouseEvent
    5. MouseScrollEvent Non-standard Deprecated
    6. MutationEvent Deprecated
    7. UIEvent
    8. WheelEvent

目录

  • Value
  • Specifications
  • Browser compatibility

KeyboardEvent: repeat property

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

Specification
UI Events
# dom-keyboardevent-repeat

Browser compatibility

BCD tables only load in the browser

MDN Web 中文网 - 粤ICP备13048890号