added comment we shoulda had b4

This commit is contained in:
rainbow napkin 2026-10-16 03:23:05 -04:00
parent 3ec770ba28
commit 0f735c08ed

View file

@ -258,6 +258,7 @@ class chatBox{
* @param {Event} event - Event passed down from Event Handler * @param {Event} event - Event passed down from Event Handler
*/ */
send(event){ send(event){
//If we don't have an event, or if we do it isn't a keeb event, or if it is we hit enter
if((!event || !event.key || event.key == "Enter") && this.chatPrompt.value){ if((!event || !event.key || event.key == "Enter") && this.chatPrompt.value){
//Transmit the chat //Transmit the chat
this.transmit(this.chatPrompt.value); this.transmit(this.chatPrompt.value);