Improve IME consistency

Might help with #326
This commit is contained in:
DominikDoom
2025-05-01 13:48:32 +02:00
parent e0baa58ace
commit 41d185b616

View File

@@ -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);
});