[Editor] - Obtain cell on KeyDown
[Editor] - Obtain cell on KeyDown
VascoSaavedra
Posts: 42Questions: 8Answers: 1
I need to be able to obtain the current Cell when a KeyDown is pressed.
Unfortunately, contrary to the key-blur event, the keydown event does not pass the Cell.
KeyBlur event:
datatable.on('key-blur', function(e, d, cell) {
KeyDown event:
datatable.on('keydown', function(e) {
I'm using KeyTable + Editor.
Is there any way to obtain the current Cell on the KeyDown event?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
datatable.cell( { focused: true } )
. Documentation is here.Allan
Perfect, thank you very much for the fast response.