Event

Constructors

this
this(string eventName, Widget target)

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

Members

Aliases

target
alias target = srcElement

Undocumented in source.

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

altKey
bool altKey;

NOTE: only set on key events right now

button
int button;

Undocumented in source.

buttonLinear
int buttonLinear;

Undocumented in source.

character
dchar character;

Undocumented in source.

clientX
int clientX;

Undocumented in source.

clientY
int clientY;

Undocumented in source.

ctrlKey
bool ctrlKey;

NOTE: only set on key events right now

intValue
int intValue;

Undocumented in source.

key
Key key;

Undocumented in source.

originalKeyEvent
KeyEvent originalKeyEvent;

Undocumented in source.

relatedTarget
Widget relatedTarget;

Undocumented in source.

shiftKey
bool shiftKey;

Undocumented in source.

srcElement
Widget srcElement;

Undocumented in source.

state
int state;

Undocumented in source.

stringValue
string stringValue;

Undocumented in source.

viewportX
int viewportX;

Undocumented in source.

viewportY
int viewportY;

Undocumented in source.

Meta