lifecycle: detach IME on title windows for CJK Windows #263

Manually merged
github merged 1 commit from github-bot/gh-263 into gh-pr/263/base 2026-12-06 00:55:51 +00:00 AGit
Owner

@⁠860776819 on GitHub · 2026-12-05 22:20 UTC · original
860776819:pr/ime-cjk-detach → main · +26 −0 · 1 files · 1 commits · merged 2026-12-05 22:51 UTC

Summary

  • Detaches the Windows IME context solely on the title window via ImmAssociateContextEx(hwnd, null, 0) when hooking the window and on WM_SETFOCUS in crates/larp-hle/src/modules/lifecycle.rs.
  • Prevents CJK input methods (Microsoft Pinyin, Sogou, Japanese/Korean IMEs) from popping up candidate boxes or intercepting WASD / Shift keys during M&K gameplay without affecting any other Windows applications.
  • Provides opt-out via LARP_IME_DETACH=0.

Testing

  • cargo test -p larp-hle --lib passed.
  • Verified live on Windows 11 with active CJK IME during M&K gameplay.
**@⁠860776819** on GitHub · 2026-12-05 22:20 UTC · [original](https://github.com/gamingwithhomie/larp/pull/263) `860776819:pr/ime-cjk-detach` → `main` · +26 −0 · 1 files · 1 commits · merged 2026-12-05 22:51 UTC ### Summary - Detaches the Windows IME context solely on the title window via `ImmAssociateContextEx(hwnd, null, 0)` when hooking the window and on `WM_SETFOCUS` in `crates/larp-hle/src/modules/lifecycle.rs`. - Prevents CJK input methods (Microsoft Pinyin, Sogou, Japanese/Korean IMEs) from popping up candidate boxes or intercepting `WASD` / `Shift` keys during M&K gameplay without affecting any other Windows applications. - Provides opt-out via `LARP_IME_DETACH=0`. ### Testing - `cargo test -p larp-hle --lib` passed. - Verified live on Windows 11 with active CJK IME during M&K gameplay.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:21:37 +00:00
github-bot changed target branch from main to gh-pr/263/base 2026-12-05 22:55:19 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:55:31 +00:00
github manually merged commit 24699cf8b6 into gh-pr/263/base 2026-12-06 00:55:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.