diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-05-02 12:50:15 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-05-02 12:50:15 +0200 |
commit | 5de4e5ab5243056d449f2af720264b4d6281e777 (patch) | |
tree | 1b87f117fb590d3815f731c0b2b62c09a1cd55fe | |
parent | 2965d6ce4ce05e40f740ea9d25012f5bb96fc32e (diff) |
fix(editing): restore default behaviour of message field keyboard navigation (Ctrl+Up)
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/components/NewMessage/NewMessage.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/NewMessage/NewMessage.vue b/src/components/NewMessage/NewMessage.vue index 63be90c04..5eebf9339 100644 --- a/src/components/NewMessage/NewMessage.vue +++ b/src/components/NewMessage/NewMessage.vue @@ -962,8 +962,8 @@ export default { this.blurInput() }, - handleEditLastMessage() { - if (!canEditMessage || this.upload || this.broadcast || this.isRecordingAudio) { + handleEditLastMessage(event) { + if (!canEditMessage || this.text || this.upload || this.broadcast || this.isRecordingAudio) { return } const lastMessageByCurrentUser = this.$store.getters.messagesList(this.token).findLast(message => { @@ -976,6 +976,7 @@ export default { return } + event.preventDefault() this.chatExtrasStore.initiateEditingMessage({ token: this.token, id: lastMessageByCurrentUser.id, |