From 2f608ab4c15bbda6ee4d32354fa2d2b259507055 Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Fri, 9 Aug 2019 14:59:27 -0700 Subject: [PATCH] dont trigger keyboard shortcuts on composition --- modules/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/keyboard.js b/modules/keyboard.js index 15d0d351a5..5089eba673 100644 --- a/modules/keyboard.js +++ b/modules/keyboard.js @@ -106,7 +106,7 @@ class Keyboard extends Module { listen() { this.quill.root.addEventListener('keydown', evt => { - if (evt.defaultPrevented) return; + if (evt.defaultPrevented || evt.isComposing) return; const bindings = (this.bindings[evt.key] || []).concat( this.bindings[evt.which] || [], );