:: Forum >>
AW.UI.Button
the onControlClicked works fine.
But what about the pressing of enter or some space wen the focus is on it?
Sandip
Tuesday, October 24, 2006
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
Tuesday, October 24, 2006
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
Thursday, October 26, 2006
This topic is archived.
Back to support forum
Forum search