Posted 16 May 2025, 2:00 pm EST
Before I start:
I’m using SpreadJS 18.x and the ActiveCellChanged event isn’t detailed in the documentation at https://developer.mescius.com/spreadjs/api/classes/GC.Spread.Sheets.Events#class-events
But this event is part of the event class here: GC.Spread.Sheets.Events.ActiveCellChanged when I use it in practice. What gives?
Onto my main question:
I have a form that I want to set tab indexes on for the cells. There is no purpose in letting the tab key continue to tab down the same row after reaching the end of the form.
I want to be able to set a tab index or at least intercept the keydown event so I can see what cell the user is leaving (by way of the tab key) and send them to the first column on the next row.
The ActiveCellChanged event does not provide the event keyCode so it is of little use.
I tried to set a window event for keydown so I could set a global variable that I interrogate in ActiveCellChanged but spreadjs hijacks the tab keydown event and does not bubble it up trhough the DOM.
What is the best way for me to achieve this?