Skip to main content

Module input

Module input 

Source
Expand description

The Input domain.

Types, command parameters and event payloads for the Input domain. The method-name constants for the same domain are in crate::methods.

Structs§

CancelDraggingParams
Cancels any active dragging in the page.
DispatchDragEventParams
Dispatches a drag event into the page.
DispatchKeyEventParams
Dispatches a key event to the page.
DispatchMouseEventParams
Dispatches a mouse event to the page.
DispatchTouchEventParams
Dispatches a touch event to the page.
DragData
Experimental: may change without notice.
DragDataItem
Experimental: may change without notice.
DragInterceptedEvent
Emitted only when Input.setInterceptDrags is enabled. Use this data with Input.dispatchDragEvent to restore normal drag and drop behavior.
EmulateTouchFromMouseEventParams
Emulates touch event from the mouse event parameters.
ImeSetCompositionParams
This method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.
InsertTextParams
This method emulates inserting text that doesn’t come from a key press, for example an emoji keyboard or an IME.
SetIgnoreInputEventsParams
Ignores input events (useful while auditing page).
SetInterceptDragsParams
Prevents default drag and drop behavior and instead emits Input.dragIntercepted events. Drag and drop behavior can be directly controlled via Input.dispatchDragEvent.
SynthesizePinchGestureParams
Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
SynthesizeScrollGestureParams
Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
SynthesizeTapGestureParams
Synthesizes a tap gesture over a time period by issuing appropriate touch events.
TouchPoint

Enums§

DispatchDragEventType
The values type accepts on dispatchDragEvent.
DispatchKeyEventType
The values type accepts on dispatchKeyEvent.
DispatchMouseEventPointerType
The values pointerType accepts on dispatchMouseEvent.
DispatchMouseEventType
The values type accepts on dispatchMouseEvent.
DispatchTouchEventType
The values type accepts on dispatchTouchEvent.
EmulateTouchFromMouseEventType
The values type accepts on emulateTouchFromMouseEvent.
GestureSourceType
Experimental: may change without notice.
MouseButton

Type Aliases§

TimeSinceEpoch
UTC time in seconds, counted from January 1, 1970.