class dom::Event
sys::Obj dom::Event
@Js
Event models the DOM event object.
- alt
-
Bool alt()Return true if the ALT key was pressed during the event.
-
Int? button()Mouse button number pressed.
- ctrl
-
Bool ctrl()Return true if the CTRL key was pressed during the event.
- dataTransfer
-
DataTransfer dataTransfer()The DataTransfer object for this event.
- delta
-
Pos? delta()Scroll amount for wheel events.
- key
-
Key? key()Key instance for key pressed.
- meta
-
Bool meta()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()The mouse position of this event relative to page.
- shift
-
Bool shift()Return true if the SHIFT key was pressed during the event.
- stash
-
Str:Obj? stash := [Str:Obj?][:]Meta-data for this event instance.
- stop
-
Void stop()Stop further propagation of this event.
- target
-
Elem target()The target to which the event was dispatched.
- toStr
-
virtual override Str toStr() - type
-
Str type()The type of this event.