Commit 346e5d89 authored by Ariel Fuggini's avatar Ariel Fuggini Committed by JC Brand

Updated selector

parent b6dabf73
......@@ -331,7 +331,9 @@ converse.plugins.add('converse-emoji-views', {
} else if (ev.keyCode === converse.keycodes.ENTER) {
this.onEnterPressed(ev);
} 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 (
ev.keyCode !== converse.keycodes.ENTER &&
ev.keyCode !== converse.keycodes.DOWN_ARROW
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment