enable chat in next tick to avoid t being entered
This commit is contained in:
parent
7c9b954d35
commit
ceca3bfcfa
1 changed files with 2 additions and 2 deletions
|
@ -133,11 +133,11 @@ class ChatBox extends LitElement {
|
|||
e = e || window.event
|
||||
if (self.inChat === false) {
|
||||
if (e.code === 'KeyT') {
|
||||
enableChat(false)
|
||||
setTimeout(() => enableChat(false), 0)
|
||||
}
|
||||
|
||||
if (e.code === 'Slash') {
|
||||
enableChat(true)
|
||||
setTimeout(() => enableChat(true), 0)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue