3.2.0

AW.UI.Button

the onControlClicked works fine.
But what about the pressing of enter or some space wen the focus is on it?
Sandip
October 24,
ok i added this bit of code and now it works

this.submitPressed=function(e){
var key;
if (window.event) {
e = window.event;
key = e.keyCode;
} else {
key = e.which;
}
if(key==13 || key==32)
{
this.onControlClicked();
}
};
this.setEvent("onkeydown", this.submitPressed);


where this is a reference to the html button object.
however i cannot get the onmouseover event or onmouseout even so unable to change on focus in and focus out.
Sandip
October 24,
hehe going through the aw code i found something even better. Knocking my head over this.
Must say the grid is awesome.
Just experimenting with it at present though.
this.onKeySpace=this.onControlClicked;
    this.onKeyEnter=this.onControlClicked;
Sandip
October 26,

This topic is archived.

See also:


Back to support forum