dont conflict message sending with topic creation
This commit is contained in:
parent
6d6a5099e9
commit
c256d0891b
1 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,10 @@ const Listeners = {
|
|||
|
||||
switch (e.which) {
|
||||
case 13: // if enter key is pressed
|
||||
JIT.enterKeyHandler()
|
||||
// prevent topic creation if sending a message
|
||||
if (e.target.className !== 'chat-input') {
|
||||
JIT.enterKeyHandler()
|
||||
}
|
||||
e.preventDefault()
|
||||
break
|
||||
case 27: // if esc key is pressed
|
||||
|
|
Loading…
Reference in a new issue