Skip to content

Commit

Permalink
fix: change keypress to keydown (misskey-dev#8192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogdriip authored Jan 25, 2022
1 parent fa554f1 commit 562c4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/pages/messaging/messaging-room.form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ref="text"
v-model="text"
:placeholder="$ts.inputMessageHere"
@keypress="onKeypress"
@keydown="onKeydown"
@compositionupdate="onCompositionUpdate"
@paste="onPaste"
></textarea>
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 562c4d9

Please sign in to comment.