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: IntSCROLL_PAGE_DOWN: IntInstance Members
view: WindowReturns a WindowProxy that contains the view that generated the event.
detail: IntReturns a long with details about the event, depending on the event type.
layerX: IntReturns the horizontal coordinate of the event relative to the current layer.
layerY: IntReturns the vertical coordinate of the event relative to the current layer.
pageX: IntReturns the horizontal coordinate of the event relative to the whole document.
pageY: IntReturns the vertical coordinate of the event relative to the whole document.
which: IntReturns the numeric keyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed.
rangeParent: NoderangeOffset: IntinitUIEvent(aType: String, ?aCanBubble: Bool = false, ?aCancelable: Bool = false, ?aView: Window, ?aDetail: Int = 0): VoidInitializes 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) |