According to the docs, I should be able to handle key events, such as keypress, in the same way that I can handle the event click, but I feel that something is missing.
I have done the following:
> meteor create keypressTest
> cd keypressTest
> sed -e 's/click input/keypress body/' -i .bak keypressTest.js
> meteor
But when I press the keys, nothing is displayed on the console, as when processing the click event.
Are there any examples of working with key manipulators in a meteor? I know that I can make a workaround in jquery, but I prefer to stick with clean template events if I can.
source
share