X Tutup
Skip to content

fix(editor): Korean IME auto-pair behavior#12432

Open
80ROkWOC4j wants to merge 1 commit intologseq:version/filefrom
80ROkWOC4j:version/file/260228_ime_auto_pair
Open

fix(editor): Korean IME auto-pair behavior#12432
80ROkWOC4j wants to merge 1 commit intologseq:version/filefrom
80ROkWOC4j:version/file/260228_ime_auto_pair

Conversation

@80ROkWOC4j
Copy link

@80ROkWOC4j 80ROkWOC4j commented Mar 6, 2026

Summary

This pr fixes #12418 in file version.

Changes

editor.cljs : Add IME status snapshot.
editor_test.cljs : Add IME related tests.

Why bunch of codes

This fix became larger because the bug was caused by IME event ordering, not by a single missing condition.

With Korean IME, compositionend, keyup, and DOM updates do not arrive in the same order as normal keydown-based input, and some engines expose the key as Process / 229 or omit it. That means the existing autopair logic cannot infer enough from the current DOM alone.

The snapshot and IME-specific state were added to recover the pre-commit editor state and keep IME behavior aligned with the existing non-IME autopair behavior, instead of introducing a separate autopair implementation.

Tested Env

Windows 11, Edge & Firefox browser

  • Microsoft Korean IME
  • Microsoft Korean IME legacy (before Windows 10)
  • NGS IME (include TSF based impl)

logseq_fileversion_kor_ime

@CLAassistant
Copy link

CLAassistant commented Mar 6, 2026

CLA assistant check
All committers have signed the CLA.

@80ROkWOC4j 80ROkWOC4j force-pushed the version/file/260228_ime_auto_pair branch from dbb34c0 to 2df9a11 Compare March 6, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup