dotnet/wpf

Scancode not passed to TSF

Open

#11,635 创建于 2026年5月12日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)C# (6,683 star) (1,126 fork)batch import
Good First Issue

描述

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

贡献者指南

Scancode not passed to TSF · dotnet/wpf#11635 | Good First Issue