Event

Constructors

this
this(string eventName, Widget target)

Creates an event without populating any members and without sending it. See dispatch

Members

Functions

dispatch
void dispatch()

this dispatches the element using the capture -> target -> bubble process

preventDefault
void preventDefault()

Prevents the default event handler (if there is one) from being called

sendDirectly
void sendDirectly()

this sends it only to the target. If you want propagation, use dispatch() instead.

stopPropagation
void stopPropagation()

Stops the event propagation immediately.

Variables

button
int button;

MouseEvent.button

buttonLinear
int buttonLinear;

MouseEvent.buttonLinear

character
dchar character;
clientX
int clientX;
clientY
int clientY;

The mouse event location relative to the target widget

intValue
int intValue;
key
Key key;
relatedTarget
Widget relatedTarget;
shiftKey
bool shiftKey;
srcElement
Widget srcElement;
state
int state;
stringValue
string stringValue;
viewportX
int viewportX;
viewportY
int viewportY;

The mouse event location relative to the window origin

Suggestion Box / Bug Report