dotnet/wpf

Scancode not passed to TSF

Open

#11.635 aperta il 12 mag 2026

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)C# (1126 fork)batch import
Good First IssuePR Proposed

Metriche repository

Star
 (6683 star)
Metriche merge PR
 (Merge medio 2g 7h) (41 PR mergiate in 30 g)

Descrizione

Description

The TextServiceManager does not pass scancode to Cicero/TSF

Reproduction Steps

https://github.com/dotnet/wpf/blob/7f005faa89e79b0b1fa1cb2c21283bab7916c092/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesManager.cs#L232-L235

type anything using IME

Expected behavior

The scancode to be properly populated, e.g. from keyArgs.Scancode

Actual behavior

scancode seen in ITfKeyEventSink.On[Test]KeyDown is always 0

Regression?

no

Known Workarounds

reconstruct from virtual key

Impact

text services relying on scancodes do not work in WPF

Configuration

.NET 10/4.8, Windows 11, x64

Other information

No response

Guida contributor