Updated selector
This commit is contained in:
parent
b6dabf7381
commit
346e5d896f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user