Skip to content
Snippets Groups Projects
Unverified Commit 562c4d99 authored by Hyunseung Jeon's avatar Hyunseung Jeon Committed by GitHub
Browse files

fix: change keypress to keydown (#8192)

parent fa554f16
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment