跳至主要内容

InputEvent 对象

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