Open alexispurslane opened 10 years ago
By "does not work" do you mean onKey is not called at all or just that the code inside your if-statement is not being executed?
onKey()
is never EVER called
Can you show the rest of your code? What platform and node version are you on?
Actually, I think I got it working. By the way, the project i'm working on is writing a text-editor in node!
I have this code:
and then for onKey:
yet, it does NOTHING, but also has no error. help?