Posted 11 March 2019, 8:14 pm EST
Good morning,
Using SpreadJS I found impossible to unbind the key events even if the cursor and the document.activeElement is outside the generated canvas.
I would love to hear from you if anyone has a solution.
I’m using ESC and ENTER keys to focus on a specific area of my user interface but somehow the existing spread sheet capture these events.
Step to reproduce:
Create a spread sheet,
Create an input text
Create a window/document listener to focus automatically the input text on ESC (keycode 27)
Click within the spread sheet (canvas) to edit a cell
Press ESC
Start typing
Note: SpreadJS capture the input event so rather than typing within the input the text goes within the sheet cell.