:: Forum >>

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
Thursday, August 13, 2009
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
Thursday, August 13, 2009

This topic is archived.


Back to support forum

Forum search