Pass XGameUi text entry scope hints to Windows text services #2772
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2772
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2772"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@maxence468 on GitHub · 2026-11-25 20:09 UTC · original
maxence468:ui/text-input-scopes→main· +49 −6 · 1 files · 1 commits · openForward the requested input scope to the native edit control before focus and remove its association during teardown. This lets Windows input services choose a keyboard layout for email, URL, numeric, telephone and other documented entry scopes. Unknown values use the default. This PR covers input hints only. Password masking is tracked separately in #2067. All four XGameUi tests passed on Windows, including a hidden native EDIT control accepting each scope and clearing the association. No physical touch keyboard or game session was tested.
@cloph-dsp on GitHub · 2026-11-25 20:26 UTC · original
Local verification on Windows / rustc 1.100.0 / MSVC, synthetic inputs only, no game data, no GPU, no clippy/rustup.
AI-assisted (Hy4 flash).
@fuzeofficlal on GitHub · 2026-11-25 20:52 UTC · original
Reviewed and verified
bcb809a2on Windows 11 (rustc 1.98.1MSVC) againstmain(13f91ca).Code review
msctf.dll(xgameui.rs:166-169):#[link(name = "msctf", kind = "raw-dylib")]addsmsctf.dll!SetInputScopeto the executable's PE import table. On minimal Windows installs or Wine/Proton prefixes wheremsctf.dllorSetInputScopeis unavailable, process startup will fail instead of degrading gracefully. Dynamically resolving it viaLoadLibraryExW+GetProcAddress(cached inOnceLock, matching optional host DLLs elsewhere invictory-hle) avoids that startup risk.xgameui.rs:238-240):WM_DESTROYguards!edit.is_null()before callingSetInputScope(edit, 0), whereasWM_INITDIALOGpasseseditdirectly without checking!edit.is_null().windows_scopemappings (1, 5, 29, 31, 32, 40, 50, 68) and callingSetInputScopeon the modal dialog thread that owns the edit control look clean.Verification & merge compatibility
cargo test --locked -p victory-hle --lib(3 consecutive full parallel runs): 3/3 passed (147 passed, 0 failed, includinghost_edit_accepts_title_input_scopes).cargo clippy --locked -p victory-hle --all-targets -- -D warnings(default &--all-features): 0 warnings;cargo xtask policy: 184 files ok.13f91caand#2770; text conflict inxgameui.rswith#2067(ES_PASSWORDmasking — complementary changes, straightforward to combine).@Marvisak on GitHub · 2026-11-25 23:13 UTC · original
Automated triage for the maintainers.
This PR no longer merges cleanly into
main: it conflicts incrates/victory-hle/src/modules/xgameui.rs. Its content will be reviewed once it is rebased onto currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.