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
nullobj.onKeyF4 = function(event){...};
obj.onKeyCtrlA = function(event){...};
obj.onKeyAltShiftHome = function(event){...};
...
event (object) - DOM event
obj.onKeyPress = function(event){
var key = String.fromCharCode(event.keyCode || event.charCode);
alert(key);
}
obj.onKeyF4 = function(event){
alert("F4 key pressed");
}