dont conflict message sending with topic creation

This commit is contained in:
Connor Turland 2016-10-05 22:17:04 -04:00
parent 6d6a5099e9
commit c256d0891b

View file

@ -18,7 +18,10 @@ const Listeners = {
switch (e.which) { switch (e.which) {
case 13: // if enter key is pressed 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() e.preventDefault()
break break
case 27: // if esc key is pressed case 27: // if esc key is pressed