Chromium / Electron Predictive Text Fix
Disables Chromium's TSFHonorAutocorrectOff flag at runtime so Windows physical-keyboard predictive text works across all Chromium, Electron, CEF, WebView2, and Qt WebEngine apps even after updates.
Author: Terru03
Chromium (145+) introduced TSFHonorAutocorrectOff (enabled by default), which
causes TSFTextStore::RequestLock to silently revert Windows Text Services
Framework (TSF) predictive-text insertions (TextInputHost.exe) in input fields
that set autocorrect="off".
Many Chromium-based browsers, Electron apps, CEF hosts, WebView2 apps, and Qt
WebEngine apps set autocorrect="off" on chat boxes and editors, and several
overwrite CLI --disable-features switches or replace patched app.asar files
on auto-update.
How it works
This mod works across all Chromium-based applications (32-bit, 64-bit, and
ARM64) without maintaining a fixed app list:
- Automatic detection: Inspects loaded executables and DLLs (both at mod
initialization and on delayed DLL loads via
LdrRegisterDllNotification) for
standard Chromium / CEF PE export markers (GetHandleVerifier +
IsSandboxedProcess, or cef_version_info) as well as known embedded engine
DLLs (chrome.dll, msedge.dll, libcef.dll, EmbeddedBrowserWebView.dll,
Qt6WebEngineCore.dll, Qt5WebEngineCore.dll, opera_browser.dll,
vivaldi.dll, electron.dll, nw.dll, browser.dll).
- Runtime patch: Safely locates
"TSFHonorAutocorrectOff" in readable
.rdata pages and flips the matching base::Feature default_state
(1 -> 0) in .data, clearing cached feature state bits before Chromium
evaluates it. Because it operates in runtime memory, it survives app updates
and works in Microsoft Store / MSIX (WindowsApps) and integrity-verified
apps.
- Additional apps setting: If a custom or stripped Chromium/WebView fork uses
an unrecognized executable or DLL name without standard exports, add its name
or wildcard pattern (e.g.
myapp.exe, *webview*.dll) under Additional
modules or executables in the mod's settings—or enable Scan all large
modules.
Notes:
- Restart any already-running Chromium/Electron apps once after enabling or
disabling the mod so they initialize cleanly (apps that already cached the
feature flag at startup may keep their current behavior until restarted).
- Explicit
--enable-features=TSFHonorAutocorrectOff CLI overrides or
server-side Finch trials take precedence over default_state.
- Ensure Windows Show text suggestions when typing on the physical
keyboard is enabled in Settings > Time & language > Typing.