Hi guys,
I have custom grid made of HTML tables. User can enter values into each cell, then automatically move to the next cell below when they press the DOWN key or ENTER KEY, much like in a spreadsheet.
My problem is, when user types quickly and pressed the DOWN key before he releases another key on keyboard, the last input character is missing.
I understand the sequence of events in HTML input fields:
keydown
keypress
keyup
If the user pressed DOWN key while he has not yet release the other key, the keyup
event for the other key never gets called.
Also, when I a key on the keyboard, while the text is displayed on the text field, when I access txtfield.value
or txtfield.innerText
the value is not available yet. When will this be available?
Any ideas how can I resolved this? I would really appreciate you help. Thanks