Skip to main content

KeyboardInputEvent Object extends InputEvent

  • type string - The type of the event, can be keyDown, keyUp or char.事件的类型可以是keyDownkeyUpchar
  • keyCode string - The character that will be sent as the keyboard event. 将作为键盘事件发送的字符。Should only use the valid key codes in Accelerator.应仅使用Accelerator中的有效钥匙代码。