跳到主要内容

InputEvent 对象

  • type string - 可以是 undefinedmouseDownmouseUpmouseMovemouseEntermouseLeavecontextMenumouseWheelrawKeyDownkeyDownkeyUpchargestureScrollBegingestureScrollEndgestureScrollUpdategestureFlingStartgestureFlingCancelgesturePinchBegingesturePinchEndgesturePinchUpdategestureTapDowngestureShowPressgestureTapgestureTapCancelgestureShortPressgestureLongPressgestureLongTapgestureTwoFingerTapgestureTapUnconfirmedgestureDoubleTaptouchStarttouchMovetouchEndtouchCanceltouchScrollStartedpointerDownpointerUppointerMovepointerRawUpdatepointerCancelpointerCausedUaAction
  • modifiers string[] (可选) - 事件的修饰符数组,可以是 shiftcontrolctrlaltmetacommandcmdisKeypadisAutoRepeatleftButtonDownmiddleButtonDownrightButtonDowncapsLocknumLockleftright