Description
The TextServiceManager does not pass scancode to Cicero/TSF
Reproduction Steps
|
default: |
|
wParam = KeyInterop.VirtualKeyFromKey(keyArgs.RealKey); |
|
scancode = 0; |
|
break; |
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
Description
The TextServiceManager does not pass scancode to Cicero/TSF
Reproduction Steps
wpf/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextServicesManager.cs
Lines 232 to 235 in 7f005fa
type anything using IME
Expected behavior
The scancode to be properly populated, e.g. from
keyArgs.ScancodeActual behavior
scancode seen in
ITfKeyEventSink.On[Test]KeyDownis always 0Regression?
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