fix: change keypress to keydown (#8192)

This commit is contained in:
Hyunseung Jeon 2022-01-25 18:01:29 +09:00 committed by GitHub
parent fa554f1684
commit 562c4d99e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
ref="text"
v-model="text"
:placeholder="$ts.inputMessageHere"
@keypress="onKeypress"
@keydown="onKeydown"
@compositionupdate="onCompositionUpdate"
@paste="onPaste"
></textarea>
@ -141,7 +141,7 @@ export default defineComponent({
//#endregion
},
onKeypress(e) {
onKeydown(e) {
this.typing();
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canSend) {
this.send();