From f681b4bded8105e0ad157d19ba168ac32d755bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=95?= Date: Tue, 27 Feb 2018 16:22:20 +0800 Subject: [PATCH] MessageBox: listen for keydown instead of keyup (#9908) --- packages/message-box/src/main.vue | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/message-box/src/main.vue b/packages/message-box/src/main.vue index 4eb29e7a1..e6d8a9292 100644 --- a/packages/message-box/src/main.vue +++ b/packages/message-box/src/main.vue @@ -37,10 +37,7 @@
{{ editorErrorMessage }}
@@ -145,18 +142,6 @@ }, methods: { - handleComposition(event) { - if (event.type === 'compositionend') { - setTimeout(() => { - this.isOnComposition = false; - }, 100); - } else { - this.isOnComposition = true; - } - }, - handleKeyup() { - !this.isOnComposition && this.handleAction('confirm'); - }, getSafeClose() { const currentId = this.uid; return () => {