Return true if the ALT key was pressed during the event.
Mouse button number pressed.
Return a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object:
this < that => <0
this == that => 0
this > that => >0
This method may also be accessed via the <
<=
<=>
>=
and >
shortcut operators. If not overridden the default
implementation compares the toStr
representations. Also see docLang.
Examples:
3.compare(8) => -1
8.compare(3) => 1
8.compare(8) => 0
3 <=> 8 => -1 // shortcut for 3.compare(8)
Return true if the CTRL key was pressed during the event.
Data message used with HttpSocket.onReceive
The DataTransfer object for this event.
Scroll amount for wheel events.
Compare this object to the specified for equality. This
method may be accessed via the == and != shortcut operators.
If not overridden the default implementation compares for
reference equality using the === operator. If this method
is overridden, then hash() must also be overridden such that
any two objects which return true for equals() must return
the same value for hash(). This method must accept null
and
return false.
Err instance if available for window.onerror
.
Return a unique hashcode for this object. If a class overrides hash() then it must ensure if equals() returns true for any two objects then they have same hash code.
Key instance for key pressed.
Character string for key event that represents text typed. For example Shift + Key.b would return "B".
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.
The mouse position of this event relative to page.
Optional secondary target depending on event type:
event target relatedTarget
-------- -------------------- -----------------------------
blur elem losing focus elem receiving focus (if any)
focus elem receiving focus elem losing focus (if any)
focusin elem receiving focus elem losing focus (if any)
focusout elem losing focus elem receiving focus (if any)
Return true if the SHIFT key was pressed during the event.
Stop further propagation of this event.
The target to which the event was dispatched.
Get an immutable representation of this instance or throw NotImmutableErr if this object cannot be represented as an immutable:
Get the native JavaScript Event object
Return a string representation of this object.
The type of this event.
This method called whenever an it-block is applied to an
object. The default implementation calls the function with this
,
and then returns this
.
Static
echoWrite x.toStr
to standard output followed by newline. If x
is null then print "null". If no argument is provided then
print an empty line.
Optional
x: JsObjStatic
from
Event models the DOM event object.
Common event types: