Skip to content

Keydown event handler on a text area rendered in a Webview2 control not detecting '@' character on Finnish (and other) keyboard layouts. #10284

@koenvd

Description

@koenvd

Describe the bug

On Finnish keyboard the user needs to press "AltGr" & "2" key to enter the @ character

Apparently in the keydown event listener on a textarea in Webview2 the event.key property never get's the correct value. This works in Edge browser though ...

Steps to reproduce the bug

See here how Finnish keyboard produces '@' in Edge, but only '2' character in Webview2 in WinUI.

Image

Screenshot to show difference:
Image

Issue reproduces on other keyboard layouts as well from the moment AltGraph needs to be used.

Expected behavior

The value of event.key should be '@' in WinUI / Webview2 as well.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

Windows version

Windows 11 (21H2): Build 22000

Additional context

Using Microsoft.Web.WebView2 nuget package, version 1.0.2903.40

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions