|
104 | 104 | @shortkey="focusInput"
|
105 | 105 | @keydown.esc="handleInputEsc"
|
106 | 106 | @keydown.ctrl.up="handleEditLastMessage"
|
107 |
| - @tribute-active-true.native="isTributePickerActive = true" |
108 |
| - @tribute-active-false.native="isTributePickerActive = false" |
109 | 107 | @input="handleTyping"
|
110 | 108 | @paste="handlePastedFiles"
|
111 | 109 | @submit="handleSubmit" />
|
@@ -335,7 +333,6 @@ export default {
|
335 | 333 | showPollEditor: false,
|
336 | 334 | showNewFileDialog: -1,
|
337 | 335 | showFilePicker: false,
|
338 |
| - isTributePickerActive: false, |
339 | 336 | // Check empty template by default
|
340 | 337 | userData: {},
|
341 | 338 | clipboardTimeStamp: null,
|
@@ -525,7 +522,7 @@ export default {
|
525 | 522 | },
|
526 | 523 |
|
527 | 524 | chatInput(newValue) {
|
528 |
| - if (this.text !== newValue) { |
| 525 | + if (parseSpecialSymbols(this.text) !== newValue) { |
529 | 526 | this.text = newValue
|
530 | 527 | }
|
531 | 528 | },
|
@@ -623,6 +620,8 @@ export default {
|
623 | 620 | return
|
624 | 621 | }
|
625 | 622 | this.$nextTick(() => {
|
| 623 | + // reset or fill main input in chat view from the store |
| 624 | + this.text = this.chatInput |
626 | 625 | // refocus input as the user might want to type further
|
627 | 626 | this.focusInput()
|
628 | 627 | })
|
@@ -959,17 +958,12 @@ export default {
|
959 | 958 | },
|
960 | 959 |
|
961 | 960 | handleInputEsc() {
|
962 |
| - if (this.messageToEdit && !this.isTributePickerActive) { |
| 961 | + if (this.messageToEdit) { |
963 | 962 | this.handleAbortEdit()
|
964 | 963 | this.focusInput()
|
965 | 964 | return
|
966 | 965 | }
|
967 |
| - // When the tribute picker (e.g. emoji picker or mentions) is open |
968 |
| - // ESC should only close the picker but not blur |
969 |
| - if (!this.isTributePickerActive) { |
970 |
| - this.blurInput() |
971 |
| - } |
972 |
| - |
| 966 | + this.blurInput() |
973 | 967 | },
|
974 | 968 |
|
975 | 969 | handleEditLastMessage() {
|
|
0 commit comments