@@ -97,7 +97,7 @@ def dispatch_key_event( # noqa: PLR0913, PLR0917, PLR0912
9797 Not needed for 'keyUp' and 'rawKeyDown' events (default: "").
9898 unmodified_text: Text that would have been generated by the keyboard without modifiers
9999 (except for shift). Useful for shortcut key handling (default: "").
100- keyIdentifier : Unique key identifier (e.g., 'U+0041') (default: "").
100+ key_identifier : Unique key identifier (e.g., 'U+0041') (default: "").
101101 code: Unique DOM defined string value for each physical key (e.g., 'KeyA')
102102 (default: "").
103103 key: Unique DOM defined string value describing the meaning of the key in the
@@ -180,30 +180,30 @@ def dispatch_mouse_event( # noqa: PLR0913, PLR0917
180180 - mouseWheel: Mouse wheel rotated
181181 x: X coordinate of the event relative to the main frame's viewport in CSS pixels.
182182 y: Y coordinate of the event relative to the main frame's viewport in CSS pixels.
183- 0 refers to the top of the viewport, and Y increases going down.
183+ 0 refers to the top of the viewport, and Y increases going down.
184184 modifiers: Bit field representing pressed modifier keys. Values:
185- Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
185+ Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
186186 timestamp: Time at which the event occurred, in seconds since epoch.
187187 button: Mouse button being pressed/released. Default is "none".
188- Allowed values: "none", "left", "middle", "right", "back", "forward".
188+ Allowed values: "none", "left", "middle", "right", "back", "forward".
189189 click_count: Number of times the mouse button was clicked (default: 0).
190- For example, 2 for a double-click.
190+ For example, 2 for a double-click.
191191 force: The normalized pressure, which has a range of [0,1] (default: 0).
192- Used primarily for pressure-sensitive inputs.
192+ Used primarily for pressure-sensitive inputs.
193193 tangential_pressure: The normalized tangential pressure, which has a range
194- of [-1,1] (default: 0). Used for stylus input.
194+ of [-1,1] (default: 0). Used for stylus input.
195195 tilt_x: The plane angle between the Y-Z plane and the plane containing both the stylus
196- axis and the Y axis, in degrees of the range [-90,90]. A positive tiltX is
197- to the right (default: 0).
196+ axis and the Y axis, in degrees of the range [-90,90]. A positive tiltX is
197+ to the right (default: 0).
198198 tilt_y: The plane angle between the X-Z plane and the plane containing both the stylus
199- axis and the X axis, in degrees of the range [-90,90]. A positive tiltY is
200- towards the user (default: 0).
199+ axis and the X axis, in degrees of the range [-90,90]. A positive tiltY is
200+ towards the user (default: 0).
201201 twist: The clockwise rotation of a pen stylus around its own major axis,
202- in degrees in the range [0,359] (default: 0).
202+ in degrees in the range [0,359] (default: 0).
203203 delta_x: X delta in CSS pixels for mouse wheel event (default: 0).
204- Positive values scroll right.
204+ Positive values scroll right.
205205 delta_y: Y delta in CSS pixels for mouse wheel event (default: 0).
206- Positive values scroll up.
206+ Positive values scroll up.
207207 pointer_type: Pointer type (default: "mouse"). Allowed values: "mouse", "pen".
208208
209209 Returns:
@@ -317,7 +317,7 @@ def dispatch_drag_event(
317317 - dragCancel: Fired when a drag operation is being canceled
318318 x: X coordinate of the event relative to the main frame's viewport in CSS pixels.
319319 y: Y coordinate of the event relative to the main frame's viewport in CSS pixels.
320- 0 refers to the top of the viewport, and Y increases going down.
320+ 0 refers to the top of the viewport, and Y increases going down.
321321 data: Drag data containing items being dragged, their MIME types, and other information.
322322 modifiers: Bit field representing pressed modifier keys. Values:
323323 Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
0 commit comments