I can only retrieve the value without the newly pressed key. Using the keyup
event isn't an option, because it does not fire if the user doesn't release the key. This is important because I want to act upon every single keypress.
Combining the old value with the keyCode
that is reachable from the event's arguments isn't acceptable either, because it's not guaranteed that the user will type to the end of the string in the textbox.