Skip to content

Interface: MousePayload ​

Defined in: types/desktop-engine.d.ts:413

Mouse event payload, also of click and dblclick: the fields of the DOM's MouseEvent of the same name

Properties ​

altKey ​

ts
altKey: boolean;

Defined in: types/desktop-engine.d.ts:421

Whether Option is pressed


button ​

ts
button: number;

Defined in: types/desktop-engine.d.ts:430

The button that went down or up (mousedown, mouseup; 0 for the other events): 0 the primary button, 1 the middle one, 2 the secondary one, 3 and 4 back and forward, as in the DOM


buttons ​

ts
buttons: number;

Defined in: types/desktop-engine.d.ts:432

The buttons held down after the event, added up: 1 the primary button, 2 the secondary one, 4 the middle one, 8 back, 16 forward, as in the DOM


ctrlKey ​

ts
ctrlKey: boolean;

Defined in: types/desktop-engine.d.ts:419

Whether Control is pressed


metaKey ​

ts
metaKey: boolean;

Defined in: types/desktop-engine.d.ts:423

Whether Command is pressed


shiftKey ​

ts
shiftKey: boolean;

Defined in: types/desktop-engine.d.ts:425

Whether Shift is pressed


x ​

ts
x: number;

Defined in: types/desktop-engine.d.ts:415

x in the component's coordinate system (points, origin at the top-left)


y ​

ts
y: number;

Defined in: types/desktop-engine.d.ts:417

y in the component's coordinate system (points, origin at the top-left)

The SDK is released under the Apache License 2.0