I have an editable table like excel one and I'm making keydown handling for switching to next cell.
Let's say I have the following cell with caret highlited:
This is a text|
In the example above the caret resides at last character so if an user press right key on the keyboard I need to switch cell editor to next cell.
My question is how do I know that caret is resides at last character in textarea in keydown event handler?