onKeyPress

occurs when keyboard key is pressed for the control in focus

void onKeyPress(number code,event e);
codenumberkey code
eeventevent object

Example

text.attachEvent("onKeyPress", function(code, e){
    //code
});

See also
Back to top