diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-03-14 16:20:08 +0100 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-03-14 16:20:08 +0100 |
commit | 708ab23fea2e48d7832584aca3b33209fbdd60cd (patch) | |
tree | 650dacc3657f25309ef075aeebc6c579fc99e09c | |
parent | 8b8a5cd017626928eceac9fbfd164e641280b419 (diff) |
fix(NewMessage): don't check for autocomplete open
- component is capturing Esc event by itself after nextcloud/vue@8.10.0
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/components/NewMessage/NewMessage.vue | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/components/NewMessage/NewMessage.vue b/src/components/NewMessage/NewMessage.vue index 181cda13b..c06a7f1ba 100644 --- a/src/components/NewMessage/NewMessage.vue +++ b/src/components/NewMessage/NewMessage.vue @@ -104,8 +104,6 @@ @shortkey="focusInput" @keydown.esc="handleInputEsc" @keydown.ctrl.up="handleEditLastMessage" - @tribute-active-true.native="isTributePickerActive = true" - @tribute-active-false.native="isTributePickerActive = false" @input="handleTyping" @paste="handlePastedFiles" @submit="handleSubmit" /> @@ -335,7 +333,6 @@ export default { showPollEditor: false, showNewFileDialog: -1, showFilePicker: false, - isTributePickerActive: false, // Check empty template by default userData: {}, clipboardTimeStamp: null, @@ -960,17 +957,12 @@ export default { }, handleInputEsc() { - if (this.messageToEdit && !this.isTributePickerActive) { + if (this.messageToEdit) { this.handleAbortEdit() this.focusInput() return } - // When the tribute picker (e.g. emoji picker or mentions) is open - // ESC should only close the picker but not blur - if (!this.isTributePickerActive) { - this.blurInput() - } - + this.blurInput() }, handleEditLastMessage() { |