跳至主要內容

KeyboardInputEvent 物件繼承自 InputEvent

  • type 字串 - 事件的類型,可以是 rawKeyDownkeyDownkeyUpchar
  • keyCode 字串 - 將作為鍵盤事件發送的字元。應僅使用 加速器 中的有效鍵碼。