Updated selector

This commit is contained in:
Ariel Fuggini 2020-06-24 14:05:36 -05:00 committed by JC Brand
parent b6dabf7381
commit 346e5d896f

View File

@ -331,7 +331,9 @@ converse.plugins.add('converse-emoji-views', {
} else if (ev.keyCode === converse.keycodes.ENTER) { } else if (ev.keyCode === converse.keycodes.ENTER) {
this.onEnterPressed(ev); this.onEnterPressed(ev);
} else if (ev.keyCode === converse.keycodes.ESCAPE) { } else if (ev.keyCode === converse.keycodes.ESCAPE) {
document.querySelector('.chat-textarea').focus(); this.chatview.el.querySelector('.chat-textarea').focus();
ev.stopPropagation();
ev.preventDefault();
} else if ( } else if (
ev.keyCode !== converse.keycodes.ENTER && ev.keyCode !== converse.keycodes.ENTER &&
ev.keyCode !== converse.keycodes.DOWN_ARROW ev.keyCode !== converse.keycodes.DOWN_ARROW