Event bind doesn't work properly

Hi,
I am using angular6.

I had binded a keyup event in the html of handsontable.

Expected way of working:

If I release any button in the keyboard, it has to call a method defined in angular component and execute the function.

Actual working:

If I type value in the cell it’s calling the method perfectly, but if I press tab key, enter key or any arrow key to leave the cell, it’s not triggering the method, but once I left the cell and then if I press navigation keys, it works fine as expected.

Now my need is, while leaving the cell using any key also has to trigger the method in the component.

Thanks,
Bala

Hi @ebalasubramanian24

the afterDocumentKeyDown hook works for all the keys. Here is an example (open the console) https://jsfiddle.net/handsoncode/6ktbqfv4/

If I use this hook, I can’t able to use my component variables inside this method, please provide some alternate for this.