This commit is contained in:
SilverYoCha 2022-03-08 16:34:53 +01:00
parent d432bab73a
commit 7409668a5d
3 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,7 @@
- #2733: Fix OMEMO race condition related to automatic reconnection and SMACKS
- #2733: Wait for decrypted/parsed message before queuing to UI
- #2751: Media not rendered when Converse runs in a browser extension
- #2754: Navigation keys doesn't work anymore into chat input message
- #2781: Flashing error when connecting to a room
- #2786: Fix webpack configuration not working on Windows OS
- #2788: `TypeError` when trying to use `@converse/headless`

View File

@ -95,6 +95,12 @@ export default class EmojiDropdown extends DropdownBase {
super.showMenu();
setTimeout(() => this.querySelector('.emoji-search')?.focus());
}
hideMenu () {
this.chatview.querySelector('converse-emoji-picker')?.disableArrowNavigation();
super.hideMenu();
setTimeout(() => this.chatview.querySelector('.chat-textarea')?.focus());
}
}
api.elements.define('converse-emoji-dropdown', EmojiDropdown);

View File

@ -189,7 +189,6 @@ export default class EmojiPicker extends CustomElement {
this.onEnterPressed(ev);
} else if (ev.keyCode === converse.keycodes.ESCAPE) {
u.ancestor(this, 'converse-emoji-dropdown').hideMenu();
this.chatview.el.querySelector('.chat-textarea').focus();
ev.stopPropagation();
ev.preventDefault();
} else if (