The focusin listener on the matrix: whichever cell gets focus (by keyboard or by clicking it) becomes the Tab stop, so Tab returns to the last cell used.
The focusin event
The matrix the listener is attached to
The focusin listener on the matrix: whichever cell gets focus (by keyboard or by clicking it) becomes the Tab stop, so Tab returns to the last cell used.