type
string - 可以是 undefined
, mouseDown
, mouseUp
, mouseMove
, mouseEnter
, mouseLeave
, contextMenu
, mouseWheel
, rawKeyDown
, keyDown
, keyUp
, char
, gestureScrollBegin
, gestureScrollEnd
, gestureScrollUpdate
, gestureFlingStart
, gestureFlingCancel
, gesturePinchBegin
, gesturePinchEnd
, gesturePinchUpdate
, gestureTapDown
, gestureShowPress
, gestureTap
, gestureTapCancel
, gestureShortPress
, gestureLongPress
, gestureLongTap
, gestureTwoFingerTap
, gestureTapUnconfirmed
, gestureDoubleTap
, touchStart
, touchMove
, touchEnd
, touchCancel
, touchScrollStarted
, pointerDown
, pointerUp
, pointerMove
, pointerRawUpdate
, pointerCancel
或 pointerCausedUaAction
。
modifiers
string[] (可选) - 事件标识符组成的字符串数组,其中可以有 shift
, control
, ctrl
, alt
, meta
, command
, cmd
, isKeypad
, isAutoRepeat
, leftButtonDown
, middleButtonDown
, rightButtonDown
, capsLock
, numLock
, left
, right
。