MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: WebView2 input ignores programmatic IME conversion-mode toggle (Korean Hangul⇄alphanumeric); only hardware scancode works
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
Related to #2071 (programmatic keyboard control in WebView2), but this is specifically about toggling the IME conversion mode (Korean Hangul ⇄ alphanumeric) within a single IME, not switching the input language/layout.
Environment
- OS: Windows 11 (build 26xxx)
- WebView2: Evergreen (Edge runtime), hosted in a Tauri v2 (2.11.x) app with a React/Vite frontend
- Korean Microsoft IME installed
- Key remapper: PowerToys Keyboard Manager, remapping CapsLock → Hangul (VK_HANGUL / 한/영)
Symptom
I remap CapsLock to the Hangul (한/영) toggle key via PowerToys Keyboard Manager. The remap correctly toggles the IME in every native app (Notepad, browsers, etc.), but inside a WebView2 text input (<input>/<textarea>) pressing CapsLock does not switch the IME to Hangul mode — the field stays in alphanumeric/English mode.
What I narrowed down
- The physical Hangul key (hardware key) does toggle the IME correctly inside the WebView2 input → WebView2 accepts a "real" Hangul key.
- Only the synthetic Hangul key injected by PowerToys is ignored (works everywhere else).
- From the native host side, calling
ImmSetConversionStatus(IMM32) to force Hangul mode on the focused window does not work. - Injecting the key via
SendInputwith scancode0x72(KEYEVENTF_SCANCODE | KEYEVENTF_EXTENDEDKEYfor keydown,KEYEVENTF_KEYUPfor keyup) does work.
So the only reliable method is a hardware-scancode-level injection. This suggests WebView2/Chromium (TSF-based) ignores both IMM32 API calls and injected virtual-key IME events, and only honors scancode-level input as an IME toggle.
Questions
- Is it known/expected that WebView2 inputs ignore IMM32 calls and synthetic IME keys from remappers like PowerToys?
- Is there a supported, TSF-compatible way to programmatically set/toggle the IME conversion mode (e.g. to Hangul) for the focused WebView2 input, for CJK-input apps?
- Is this a WebView2/Chromium-level limitation, or is there a recommended host-side mitigation other than synthesizing a hardware scancode via SendInput?
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
No response
SDK Version
No response
Framework
Other
Operating System
Windows 11
OS Version
26200.8655
Repro steps
Steps to reproduce
- Windows 11 with the Korean Microsoft IME.
- In PowerToys Keyboard Manager, remap CapsLock → Hangul.
- Focus a text field inside a WebView2-hosted webview.
- Press CapsLock → the IME does not switch to Hangul (it works in every other app).
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WebView2 text-input reproduction using the Korean Microsoft IME, PowerToys CapsLock-to-Hangul remap, and the corresponding Edge comparison. Investigate the native-host paths mentioned—ImmSetConversionStatus and SendInput scancode 0x72—and compare them with the WebView2/Chromium input behavior. Done means identifying whether a supported TSF-compatible approach exists or clearly documenting the confirmed limitation and mitigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, tauri, vite
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100