Skip to content

Alt codes do not produce expected characters #15938

Closed
@nic547

Description

@nic547

Describe the bug

When using alt codes to enter special character into a TextBox, AvaloniaUI produces character different than those expected.
Examples:
Alt+4 produces , (44) rather than ♦
Alt+5 produces 7 (55) rather than ♣
Alt+19 produces ⌂ (127) rather than ‼
Alt+128 produces ò or ¢ rather than Ç
Alt+132 produces P (80) rather than ä

If the code is entered quickly, it can produce the correct character - however I've been unable to do this with values higher than 9

To Reproduce

  • Starting with the VS Avalonia Template
  • Add a TextBox to the MainWindow
  • enter a altcode

Expected behavior

Alt codes produce the usual characters

Avalonia version

11.0.6 - 11.1.0-beta2

OS

Windows

Additional context

In Versions 11.0.0 and 11.0.5 this works as expected, 11.0.6 and upwards do not work.
Tested with .NET 6.0 and 8.0 on Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions