We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6975ef commit b232504Copy full SHA for b232504
edit-context/html-editor/editor.js
@@ -178,6 +178,11 @@ if (IS_CUSTOM_HIGHLIGHT_SUPPORTED) {
178
179
// Handle key presses that are not already handled by the EditContext.
180
editorEl.addEventListener("keydown", (e) => {
181
+ // keyCode === 229 is a special code that indicates an IME event.
182
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/keydown_event#keydown_events_with_ime
183
+ if (e.keyCode === 229) {
184
+ return;
185
+ }
186
const start = Math.min(
187
editContext.selectionStart,
188
editContext.selectionEnd
0 commit comments