onKeyPress

fires after a key has been pressed but before the default key processing starts

void onKeyPress(number code,boolean cFlag,boolean sFlag){ ... };

Parameters

codenumberkey code
cFlagbooleancontrol key flag
sFlagbooleanshift key flag

Available only in PRO Edition

Example

grid.attachEvent("onKeyPress", function(code,cFlag,sFlag){
    // your code here
});

Back to top