mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
fix: change keypress to keydown (#8192)
This commit is contained in:
parent
7d2de36501
commit
4b64c72957
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue