mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 07:16:44 -06:00
fix: change keypress to keydown (#8192)
This commit is contained in:
parent
fa554f1684
commit
562c4d99e6
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
ref="text"
|
ref="text"
|
||||||
v-model="text"
|
v-model="text"
|
||||||
:placeholder="$ts.inputMessageHere"
|
:placeholder="$ts.inputMessageHere"
|
||||||
@keypress="onKeypress"
|
@keydown="onKeydown"
|
||||||
@compositionupdate="onCompositionUpdate"
|
@compositionupdate="onCompositionUpdate"
|
||||||
@paste="onPaste"
|
@paste="onPaste"
|
||||||
></textarea>
|
></textarea>
|
||||||
|
@ -141,7 +141,7 @@ export default defineComponent({
|
||||||
//#endregion
|
//#endregion
|
||||||
},
|
},
|
||||||
|
|
||||||
onKeypress(e) {
|
onKeydown(e) {
|
||||||
this.typing();
|
this.typing();
|
||||||
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canSend) {
|
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canSend) {
|
||||||
this.send();
|
this.send();
|
||||||
|
|
Loading…
Reference in a new issue