W3cubDocs

/Haxe JavaScript

Event

package js.jquery

extends Event

@:native("$.Event") Available on js

Variables

altKey:Bool

button:Int

buttons:Int

char:Int

charCode:Int

clientX:Int

clientY:Int

ctrlKey:Bool

data:Dynamic

An optional object of data passed to an event method when the current executing handler is bound.

delegateTarget:Element

The element where the currently-called jQuery event handler was attached.

detail:Int

key:String

keyCode:Int

metaKey:Bool

Indicates whether the META key was pressed when the event fired.

namespace:String

The namespace specified when the event was triggered.

offsetX:Int

offsetY:Int

pageX:Float

The mouse position relative to the left edge of the document.

pageY:Float

The mouse position relative to the top edge of the document.

relatedTarget:Element

The other DOM element involved in the event, if any.

result:Dynamic

The last value returned by an event handler that was triggered by this event, unless the value was undefined.

screenX:Int

screenY:Int

shiftKey:Bool

toElement:Element

view:Window

which:Float

For key or mouse events, this property indicates the specific key or button that was pressed.

Methods

isDefaultPrevented ():Bool

Returns whether event.preventDefault() was ever called on this event object.

isImmediatePropagationStopped ():Bool

Returns whether event.stopImmediatePropagation() was ever called on this event object.

isPropagationStopped ():Bool

Returns whether event.stopPropagation() was ever called on this event object.

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/jquery/Event.html