class type t =Inheritsobject
..end
method _A : Js.number Js.t Js.prop
Key constant
Defaults to: 65
method _ALT : Js.number Js.t Js.prop
Key constant
Defaults to: 18
method _B : Js.number Js.t Js.prop
Key constant
Defaults to: 66
method _BACKSPACE : Js.number Js.t Js.prop
Key constant
Defaults to: 8
method _C : Js.number Js.t Js.prop
Key constant
Defaults to: 67
method _CAPS_LOCK : Js.number Js.t Js.prop
Key constant
Defaults to: 20
method _CONTEXT_MENU : Js.number Js.t Js.prop
Key constant
Defaults to: 93
method _CTRL : Js.number Js.t Js.prop
Key constant
Defaults to: 17
method _D : Js.number Js.t Js.prop
Key constant
Defaults to: 68
method _DELETE : Js.number Js.t Js.prop
Key constant
Defaults to: 46
method _DOWN : Js.number Js.t Js.prop
Key constant
Defaults to: 40
method _E : Js.number Js.t Js.prop
Key constant
Defaults to: 69
method _EIGHT : Js.number Js.t Js.prop
Key constant
Defaults to: 56
method _END : Js.number Js.t Js.prop
Key constant
Defaults to: 35
method _ENTER : Js.number Js.t Js.prop
Key constant
Defaults to: 13
method _ESC : Js.number Js.t Js.prop
Key constant
Defaults to: 27
method _F : Js.number Js.t Js.prop
Key constant
Defaults to: 70
method _F1 : Js.number Js.t Js.prop
Key constant
Defaults to: 112
method _F10 : Js.number Js.t Js.prop
Key constant
Defaults to: 121
method _F11 : Js.number Js.t Js.prop
Key constant
Defaults to: 122
method _F12 : Js.number Js.t Js.prop
Key constant
Defaults to: 123
method _F2 : Js.number Js.t Js.prop
Key constant
Defaults to: 113
method _F3 : Js.number Js.t Js.prop
Key constant
Defaults to: 114
method _F4 : Js.number Js.t Js.prop
Key constant
Defaults to: 115
method _F5 : Js.number Js.t Js.prop
Key constant
Defaults to: 116
method _F6 : Js.number Js.t Js.prop
Key constant
Defaults to: 117
method _F7 : Js.number Js.t Js.prop
Key constant
Defaults to: 118
method _F8 : Js.number Js.t Js.prop
Key constant
Defaults to: 119
method _F9 : Js.number Js.t Js.prop
Key constant
Defaults to: 120
method _FIVE : Js.number Js.t Js.prop
Key constant
Defaults to: 53
method _FOUR : Js.number Js.t Js.prop
Key constant
Defaults to: 52
method _G : Js.number Js.t Js.prop
Key constant
Defaults to: 71
method _H : Js.number Js.t Js.prop
Key constant
Defaults to: 72
method _HOME : Js.number Js.t Js.prop
Key constant
Defaults to: 36
method _I : Js.number Js.t Js.prop
Key constant
Defaults to: 73
method _INSERT : Js.number Js.t Js.prop
Key constant
Defaults to: 45
method _J : Js.number Js.t Js.prop
Key constant
Defaults to: 74
method _K : Js.number Js.t Js.prop
Key constant
Defaults to: 75
method _L : Js.number Js.t Js.prop
Key constant
Defaults to: 76
method _LEFT : Js.number Js.t Js.prop
Key constant
Defaults to: 37
method _M : Js.number Js.t Js.prop
Key constant
Defaults to: 77
method _N : Js.number Js.t Js.prop
Key constant
Defaults to: 78
method _NINE : Js.number Js.t Js.prop
Key constant
Defaults to: 57
method _NUM_CENTER : Js.number Js.t Js.prop
Key constant
Defaults to: 12
method _NUM_DIVISION : Js.number Js.t Js.prop
Key constant
Defaults to: 111
method _NUM_EIGHT : Js.number Js.t Js.prop
Key constant
Defaults to: 104
method _NUM_FIVE : Js.number Js.t Js.prop
Key constant
Defaults to: 101
method _NUM_FOUR : Js.number Js.t Js.prop
Key constant
Defaults to: 100
method _NUM_MINUS : Js.number Js.t Js.prop
Key constant
Defaults to: 109
method _NUM_MULTIPLY : Js.number Js.t Js.prop
Key constant
Defaults to: 106
method _NUM_NINE : Js.number Js.t Js.prop
Key constant
Defaults to: 105
method _NUM_ONE : Js.number Js.t Js.prop
Key constant
Defaults to: 97
method _NUM_PERIOD : Js.number Js.t Js.prop
Key constant
Defaults to: 110
method _NUM_PLUS : Js.number Js.t Js.prop
Key constant
Defaults to: 107
method _NUM_SEVEN : Js.number Js.t Js.prop
Key constant
Defaults to: 103
method _NUM_SIX : Js.number Js.t Js.prop
Key constant
Defaults to: 102
method _NUM_THREE : Js.number Js.t Js.prop
Key constant
Defaults to: 99
method _NUM_TWO : Js.number Js.t Js.prop
Key constant
Defaults to: 98
method _NUM_ZERO : Js.number Js.t Js.prop
Key constant
Defaults to: 96
method _O : Js.number Js.t Js.prop
Key constant
Defaults to: 79
method _ONE : Js.number Js.t Js.prop
Key constant
Defaults to: 49
method _P : Js.number Js.t Js.prop
Key constant
Defaults to: 80
method _PAGE_DOWN : Js.number Js.t Js.prop
Key constant
Defaults to: 34
method _PAGE_UP : Js.number Js.t Js.prop
Key constant
Defaults to: 33
method _PAUSE : Js.number Js.t Js.prop
Key constant
Defaults to: 19
method _PRINT_SCREEN : Js.number Js.t Js.prop
Key constant
Defaults to: 44
method _Q : Js.number Js.t Js.prop
Key constant
Defaults to: 81
method _R : Js.number Js.t Js.prop
Key constant
Defaults to: 82
method _RETURN : Js.number Js.t Js.prop
Key constant
Defaults to: 13
method _RIGHT : Js.number Js.t Js.prop
Key constant
Defaults to: 39
method _S : Js.number Js.t Js.prop
Key constant
Defaults to: 83
method _SEVEN : Js.number Js.t Js.prop
Key constant
Defaults to: 55
method _SHIFT : Js.number Js.t Js.prop
Key constant
Defaults to: 16
method _SIX : Js.number Js.t Js.prop
Key constant
Defaults to: 54
method _SPACE : Js.number Js.t Js.prop
Key constant
Defaults to: 32
method _T : Js.number Js.t Js.prop
Key constant
Defaults to: 84
method _TAB : Js.number Js.t Js.prop
Key constant
Defaults to: 9
method _THREE : Js.number Js.t Js.prop
Key constant
Defaults to: 51
method _TWO : Js.number Js.t Js.prop
Key constant
Defaults to: 50
method _U : Js.number Js.t Js.prop
Key constant
Defaults to: 85
method _UP : Js.number Js.t Js.prop
Key constant
Defaults to: 38
method _V : Js.number Js.t Js.prop
Key constant
Defaults to: 86
method _W : Js.number Js.t Js.prop
Key constant
Defaults to: 87
method _WHEEL_SCALE : Js.number Js.t Js.prop
The mouse wheel delta scaling factor. This value depends on browser version and OS and attempts to produce a similar scrolling experience across all platforms and browsers.
To change this value:
Ext.EventObjectImpl.prototype.WHEEL_SCALE = 72;
method _X : Js.number Js.t Js.prop
Key constant
Defaults to: 88
method _Y : Js.number Js.t Js.prop
Key constant
Defaults to: 89
method _Z : Js.number Js.t Js.prop
Key constant
Defaults to: 90
method _ZERO : Js.number Js.t Js.prop
Key constant
Defaults to: 48
method altKey : bool Js.t Js.prop
True if the alt key was down during the event.
method ctrlKey : bool Js.t Js.prop
True if the control key was down during the event. In Mac this will also be true when meta key was down.
method shiftKey : bool Js.t Js.prop
True if the shift key was down during the event.
method correctWheelDelta : Js.number Js.t -> unit Js.meth
Correctly scales a given wheel delta.
Parameters:
Js.number Js.t
The delta value.
method getCharCode : Js.number Js.t Js.meth
Gets the character code for the event.
method getKey : Js.number Js.t Js.meth
Returns a normalized keyCode for the event.
Returns:
Js.number Js.t
The key code
method getPoint : Ext_util_Point.t Js.t Js.meth
Returns a point object that consists of the object coordinates.
Returns:
Ext_util_Point.t Js.t
point
method getRelatedTarget : 'a.
Js.js_string Js.t Js.optdef ->
'a Js.t Js.optdef -> bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth
Gets the related target.
Parameters:
Js.js_string Js.t
(optional)
A simple selector to filter the target or look for an ancestor of the target
_ Js.t
(optional)
The max depth to search as a number or element (defaults to 10 || document.body)
bool Js.t
(optional)
True to return a Ext.Element object instead of DOM node
method getTarget : 'b.
Js.js_string Js.t Js.optdef ->
'b Js.t Js.optdef -> bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth
Gets the target for the event.
Parameters:
Js.js_string Js.t
(optional)
A simple selector to filter the target or look for an ancestor of the target
_ Js.t
(optional)
The max depth to search as a number or element (defaults to 10 || document.body)
bool Js.t
(optional)
True to return a Ext.Element object instead of DOM node
method getWheelDelta : Js.number Js.t Js.meth
Normalizes mouse wheel y-delta across browsers. To get x-delta information, use getWheelDeltas instead.
Returns:
Js.number Js.t
The mouse wheel y-delta
method getWheelDeltas : 'c. 'c Js.t Js.meth
Returns the mouse wheel deltas for this event.
Returns:
_ Js.t
An object with "x" and "y" properties holding the mouse wheel deltas.
method getX : Js.number Js.t Js.meth
Gets the x coordinate of the event.
method getXY : Js.number Js.t Js.js_array Js.t Js.meth
Gets the page coordinates of the event.
Returns:
Js.number Js.t Js.js_array Js.t
The xy values like [x, y]
method getY : Js.number Js.t Js.meth
Gets the y coordinate of the event.
method hasModifier : bool Js.t Js.meth
Returns true if the control, meta, shift or alt key was pressed during this event.
method injectEvent : 'd. 'd Js.t Js.optdef -> unit Js.meth
Injects a DOM event using the data in this object and (optionally) a new target. This is a low-level technique and not likely to be used by application code. The currently supported event types are:
HTMLEvents
MouseEvents
UIEvents
Parameters:
_ Js.t
(optional)
If specified, the target for the event. This is likely to be used when relaying a DOM event. If not specified, getTarget is used to determine the target.
bool Js.t Js.meth
: Checks if the key pressed was a "navigation" key
Returns:
bool Js.t
True if the press is a navigation keypress
method isSpecialKey : bool Js.t Js.meth
Checks if the key pressed was a "special" key
Returns:
bool Js.t
True if the press is a special keypress
method preventDefault : unit Js.meth
Prevents the browsers default handling of the event.
method stopEvent : unit Js.meth
Stop the event (preventDefault and stopPropagation)
method stopPropagation : unit Js.meth
Cancels bubbling of the event.
method within : 'e.
'e Js.t -> bool Js.t Js.optdef -> bool Js.t Js.optdef -> bool Js.t Js.meth
Returns true if the target of this event is a child of el. Unless the allowEl parameter is set, it will return false if if the target is el. Example usage:
// Handle click on any child of an element
Ext.getBody().on('click', function(e){
if(e.within('some-el')){
alert('Clicked on a child of some-el!');
}
});
// Handle click directly on an element, ignoring clicks on child nodes
Ext.getBody().on('click', function(e,t){
if((t.id == 'some-el') && !e.within(t, true)){
alert('Clicked directly on some-el!');
}
});
Parameters:
_ Js.t
The id, DOM element or Ext.Element to check
bool Js.t
(optional)
true
to test if the related target is within el instead of the target
bool Js.t
(optional)
true
to also check if the passed element is the target or related target