diff --git a/src/services/saneKeyboardEvents.util.ts b/src/services/saneKeyboardEvents.util.ts index 8aa8964fe..f99ffdc8e 100644 --- a/src/services/saneKeyboardEvents.util.ts +++ b/src/services/saneKeyboardEvents.util.ts @@ -302,6 +302,16 @@ var saneKeyboardEvents = (function () { (keydown.key === 'U' || keydown.key === 'Process'))) ) return; + if (keydown?.key === 'Process') { + // Force the current composition session of the input method editor to be cleared + textarea.blur(); + setTimeout(() => { + textarea.value = ''; + textarea.focus(); + }); + return; + } + if (text.length === 1) { textarea.value = ''; if (controller.options && controller.options.overrideTypedText) {