Yes it can be done. You need to capture the onKeyDown, onKeyPress or onKeyUp event. Then you can test event.keyCode for the desired key code(s) and perform a <textbox>.focus() on the appropriate textbox based on which key was pressed.
Up Arrow = 38
Down Arrow = 40
Right Arrow = 39
Left Arrow = 37
Keep in mind that if someone is trying to edit a cell, and they want to use the arrow keys to move along the text, they'll have problems.
Peter
------------------------------------------------------
Work smarter, not harder.
|