obj.setController("myTabKeys", {
onKeyTab: function(event){
if (this.getCurrentColumn() != this.getLastColumn()){
this.selectCell(this.getNextColumn(), this.getCurrentRow());
}
else if (this.getCurrentRow() != this.getLastRow()){
this.selectCell(this.getFirstColumn(), this.getNextRow());
}
else {
return; // allow default tab action - jump to the next control
}
AW.setReturnValue(event, false);
},
onKeyShiftTab: function(event){
if (this.getCurrentColumn() != this.getFirstColumn()){
this.selectCell(this.getPreviousColumn(), this.getCurrentRow());
}
else if (this.getCurrentRow() != this.getFirstRow()){
this.selectCell(this.getLastColumn(), this.getPreviousRow());
}
else {
return; // allow default shift-tab action - jump to the previous control
}
AW.setReturnValue(event, false);
}
});
This topic is archived.