From 41d185b6160eea075b337aa34991275e210e39cf Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Thu, 1 May 2025 13:48:32 +0200 Subject: [PATCH] Improve IME consistency Might help with #326 --- javascript/tagAutocomplete.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index c8670ce..1744c33 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -1511,6 +1511,12 @@ function addAutocompleteToArea(area) { if (!e.inputType && !tacSelfTrigger) return; tacSelfTrigger = false; + // Block hide we are composing (IME), so enter doesn't close the results + if (e.isComposing) { + hideBlocked = true; + setTimeout(() => { hideBlocked = false; }, 100); + } + debounce(autocomplete(area, area.value), TAC_CFG.delayTime); checkKeywordInsertionUndo(area, e); });