UIEvent
The UIEvent
interface represents simple user interface events.
Documentation UIEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static Members
SCROLL_PAGE_UP: Int
SCROLL_PAGE_DOWN: Int
Instance Members
view: Window
Returns a WindowProxy
that contains the view that generated the event.
detail: Int
Returns a long
with details about the event, depending on the event type.
layerX: Int
Returns the horizontal coordinate of the event relative to the current layer.
layerY: Int
Returns the vertical coordinate of the event relative to the current layer.
pageX: Int
Returns the horizontal coordinate of the event relative to the whole document.
pageY: Int
Returns the vertical coordinate of the event relative to the whole document.
which: Int
Returns the numeric keyCode
of the key pressed, or the character code (charCode
) for an alphanumeric key pressed.
rangeParent: Node
rangeOffset: Int
initUIEvent(aType: String, ?aCanBubble: Bool = false, ?aCancelable: Bool = false, ?aView: Window, ?aDetail: Int = 0): Void
Initializes a UIEvent
object. If the event has already being dispatched, this method does nothing.
Name | Type | Default |
---|---|---|
aType |
String | |
aCanBubble |
Bool | false |
aCancelable |
Bool | false |
aView |
Window | (optional) |
aDetail |
Int | 0 |
new(type: String, ?eventInitDict: Null<UIEventInit>): Void
Name | Type | Default |
---|---|---|
type |
String | |
eventInitDict |
Null<UIEventInit> | (optional) |