Skip to content

Commit

Permalink
fix: #1031 typing IME
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Jun 14, 2022
1 parent 8e42f40 commit f8fff43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -7359,8 +7359,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
}
}

const textKey = !ctrl && !alt && !selectRange && !event._nonTextKeyCode.test(keyCode);
if (textKey && range.collapsed && range.startContainer === range.endContainer && util.isBreak(range.commonAncestorContainer)) {
if (util.isIE && !ctrl && !alt && !selectRange && !event._nonTextKeyCode.test(keyCode) && util.isBreak(range.commonAncestorContainer)) {
const zeroWidth = util.createTextNode(util.zeroWidthSpace);
core.insertNode(zeroWidth, null, false);
core.setRange(zeroWidth, 1, zeroWidth, 1);
Expand Down

0 comments on commit f8fff43

Please sign in to comment.