Skip to content

Scancode not passed to TSF #11635

@miloush

Description

@miloush

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First Issuemetadata: Issue should be easy to implement, good for first-time contributors

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions