Added a check to ensure we aren't counting alt, tab, etc...

This commit is contained in:
mike 2024-04-14 19:55:30 -07:00
parent 7bef0bcf22
commit c40479f091

View file

@ -80,6 +80,7 @@ let is_typing = (function (){
// A 'say' command is being used.
if (Evennia.isConnected() &&
inputfield.length === 1 &&
event.key.length === 1 &&
inputfield.val().match(regex)) {
// Enter. Message sent. Reset.
if (event.which === 13) {