Skip to content

Commit

Permalink
dont trigger keyboard shortcuts on composition
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Aug 9, 2019
1 parent 4fbf5d8 commit 2f608ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] || [],
);
Expand Down

0 comments on commit 2f608ab

Please sign in to comment.