:: Documentation >>

control keyboard events

AW controls intercept DOM onkeydown and onkeypress events and trigger the internal keyboard events.

also in combination with Ctrl-, Alt-, Shift-

for example, onKeyCtrlA or onKeyAltShiftHome

null

Syntax

obj.onKeyF4 = function(event){...};
obj.onKeyCtrlA = function(event){...};
obj.onKeyAltShiftHome = function(event){...};
...

Parameters

event (object) - DOM event

Example

obj.onKeyPress = function(event){
    var key = String.fromCharCode(event.keyCode || event.charCode);
    alert(key);
}

obj.onKeyF4 = function(event){
    alert("F4 key pressed");
}

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5