But with this code the keyup event launches with a char code of "0". If I add other handlers to the keypress and keydown events I see that only the keypress event gets the 13 char code.
Shouldn't allways (in the three event handlers: keydown, keypress and keyup) be received the 13 char code?
Edit: I see that I must get the getKeyCode() value instead the getCharCode()
I have a textbox declared as an InputElement, and I want to know when the user presses the ENTER key, so I have this:
But with this code the keyup event launches with a char code of "0". If I add other handlers to the keypress and keydown events I see that only the keypress event gets the 13 char code.
Shouldn't allways (in the three event handlers: keydown, keypress and keyup) be received the 13 char code?
Edit: I see that I must get the getKeyCode() value instead the getCharCode()