In the event, you can fire a new event.
newevent = document.createEventObject(oldevent)
The new event is a copy of the other event, except for that you
can modify everything.
newevent.shiftKey = false;
Now you'll need to resend it though.
oldevent.srcElement.fireEvent("on"+oldevent.type,n ewevent);
Look at the MSDN for more info
http://msdn.microsoft.com/workshop/a...ventobject.asp http://msdn.microsoft.com/workshop/a.../fireevent.asp
Something like that.
Though I must admit, I didn't get it to work, this should work (in
theory)
Good luck,
Vincent
datactrl wrote:
Thanks Vincent.
I ve tried to change the key code in keyDown event. It will work for
shift+left for shift+tab. For shift+right for tab, because shiftKey property
is readonly, just can't set it to false. So it works as shift+tab as well.
That's the problem!