added comment we shoulda had b4
This commit is contained in:
parent
3ec770ba28
commit
0f735c08ed
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue