ilovecherries / glimmer

qcs frontend
4 stars 0 forks source link

Laggy textbox send (wrong keyboard event?) #5

Closed randomouscrap98 closed 2 years ago

randomouscrap98 commented 2 years ago

Sending a chat message leaves the message inside the box long enough for me to continue typing additional characters (that aren't sent ofc). What I usually do is detect keydown rather than keypress or keyup, and IMMEDIATELY remove the message. Then if the fetch or whatever fails, I restore the textbox so you don't lose what you sent. If this is acceptable, I can modify that.