elsehow / hyperchat2

p2p messageboard around a hyperlog
2 stars 1 forks source link

main post input field misses keystrokes? #12

Open dmajoraddnine opened 8 years ago

dmajoraddnine commented 8 years ago

If I type quickly on my mechanical keyboard in the top-level submit box, I lose characters.

This is the result of me typing the sentence "what up my doggies did you see that achewood is updating again" at ~70 wpm:

chat-snip-1

dmajoraddnine commented 8 years ago

Are you handling keyup inside the submit boxes?

elsehow commented 8 years ago

yeah, i am storing some local state. that's probably what's causing this. maybe keydown will be better?

or, i should find another way of reading from the textbox (probably good old fashioned document.getElementById

elsehow commented 8 years ago

@dmajoraddnine can you confirm that 0f75ecbbd85829b64f256576114baa8b8e1eb2c9 fixes this?