Skip to content

The "?" "/" key from ABNT2 (Brazilian Portuguese) Keyboard is never sent from client to host (Unhandled button event: 135) #1789

@thedaryen

Description

@thedaryen

Description
When using a Brazilian Portuguese keyboard on the moonlight client, the last key from the last letter row, which is "/" (or "?" with the shift modifier) is not sent to the host. I've enabled verbose logging on Sunshine and, while looking at it, keyboard packet events are created when any key is pressed, but not for the aforementioned key. While looking on Moonlight's log, it spams "Unhandled button event: 135" whenever that key is pressed.

I believe it might have to do with the fact that this particular layout has one additional key on the third letter row when compared to the US standard.

Image

The additional key on the brazilian layout is the ";" key right after >, but that one works ok. It's the "/" one that doesn't work on Moonlight because physically it's on a slot that doesn't exist for US keyboards (our right shift key is actually physically smaller to accomodate the aditional key).

It's an important issue to squash because this layout is the default for every standard brazilian-made keyboard, and the key is also pretty important for desktop use, both for writing and coding.

Steps to reproduce
Just try to use any standard Brazilian ABNT2 keyboard on the moonlight client. The "?" key won't be passed to the host. Changing settings like disabling or enabling always send scan codes doesn't change this behavior. Other keys work correctly (even "ç" for example).

Other Moonlight clients
This has been tested only on Windows, both for the client and for the Sunshine host (both latest version)

Moonlight settings (please complete the following information)

  • All input settings related to Keyboard have been tried on both Sunshine and Moonlight. Changing the host or the client keyboard layouts on Windows also doesn't solve the issue, they just reflect the layout change, making all special keys wrong rather than just not sending the described key.

Client PC details (please complete the following information)

  • OS: Windows 11 25H2
  • Moonlight Version: v1.6.0

Server PC details (please complete the following information)

  • OS: Windows 11 25H2
  • Sunshine v2025.924.154138

Moonlight Logs (please attach)

  • The only relevant log entry is "- SDL Info (0): Unhandled button event: 135" whenever the key is pressed

Additional context
Maybe related to: #1395

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions