class dom::Event

sys::Obj
  dom::Event

@Js

Source

Event models the DOM event object.

alt

Bool alt()

Source

Return true if the ALT key was pressed during the event.

button

Int? button()

Source

Mouse button number pressed.

ctrl

Bool ctrl()

Source

Return true if the CTRL key was pressed during the event.

dataTransfer

DataTransfer dataTransfer()

Source

The DataTransfer object for this event.

delta

Pos? delta()

Source

Scroll amount for wheel events.

key

Key? key()

Source

Key instance for key pressed.

meta

Bool meta()

Source

Return true if the Meta key was pressed during the event. On Macs this maps to "command" key. On Windows this maps to "Windows" key.

pagePos

Pos pagePos()

Source

The mouse position of this event relative to page.

shift

Bool shift()

Source

Return true if the SHIFT key was pressed during the event.

stash

Str:Obj? stash := [Str:Obj?][:]

Source

Meta-data for this event instance.

stop

Void stop()

Source

Stop further propagation of this event.

target

Elem target()

Source

The target to which the event was dispatched.

toStr

virtual override Str toStr()

Source

type

Str type()

Source

The type of this event.