From e862ab4f709dce235bd4ecdd1d0c6bd63cc2d858 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 23 Mar 2020 16:36:37 +0900 Subject: [PATCH] Enable to handle real enter event, fix #638 --- .../organisms/annotation/Seq2seqBox.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/components/organisms/annotation/Seq2seqBox.vue b/frontend/components/organisms/annotation/Seq2seqBox.vue index 0848aaa1..255dbd72 100644 --- a/frontend/components/organisms/annotation/Seq2seqBox.vue +++ b/frontend/components/organisms/annotation/Seq2seqBox.vue @@ -14,6 +14,8 @@ 0) { this.createAnnotation(this.newText) this.newText = '' } + }, + compositionStart() { + this.isComposing = true + }, + compositionEnd() { + this.isComposing = false + this.hasCompositionJustEnded = true } } }