Quick question about addEventListener

Hi everyone!

I try to do something with the diagram while the ESC key is pressing. However, the addEventListener("keydown",...) function was able to catch the alphabets but not the “functional” keys like ESC.

Could you enlighten me how can I do it!


Please read GoJS Commands -- Northwoods Software.

In other words, do not call addEventListener, because you want to change the behavior of the listener that GoJS always adds.