Hi ,
We are trying to set the default key board focus on the current date cell ( or the chosen date ).
So user can navigate dates and use Enter action to perform some task,
1) To set the focus on the month view, right now we are using calendar.getMonthView().focus(); grid receives the focus and tabbing starts from the first cell.
You can see above behavior in the below link, just press tab until grid receives focus.
2) To perform some action on the cell we are using following method:
calendar.addDayBodyClickHandler(new DayBodyClickHandler() {
public void onDayBodyClick(DayBodyClickEvent event) {
event.getDate();
....
}
});
How can we add key press handler on the day body ? something like calendar.addDayBodyKeyPressHandler()
we are using Smartgwt version - 5.1
Please advise. :)
Thanks,
Minhaj
We are trying to set the default key board focus on the current date cell ( or the chosen date ).
So user can navigate dates and use Enter action to perform some task,
1) To set the focus on the month view, right now we are using calendar.getMonthView().focus(); grid receives the focus and tabbing starts from the first cell.
You can see above behavior in the below link, just press tab until grid receives focus.
2) To perform some action on the cell we are using following method:
calendar.addDayBodyClickHandler(new DayBodyClickHandler() {
public void onDayBodyClick(DayBodyClickEvent event) {
event.getDate();
....
}
});
How can we add key press handler on the day body ? something like calendar.addDayBodyKeyPressHandler()
we are using Smartgwt version - 5.1
Please advise. :)
Thanks,
Minhaj
Comment