3.2.0

Attach kestroke event to AW.UI.Input

Probably a simple question but, I cant find the documentation. How do I attach a keyboard event to a AW.UI.Input control? I would like to clear the contents of the input when the user presses the delete key.

Thanks,
Erik Dobrie
August 13,
var input= new AW.UI.Input;
input.setControlText("Some text");
document.write(input); 
input.onKeyDelete = function(event){
this.setControlText('');
this.refresh();
return true; // cancel 
}
Carlos
August 13,

This topic is archived.

See also:


Back to support forum