Skip to content

Send correct scancode on Windows #1755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

user202729
Copy link
Member

@user202729 user202729 commented Jul 16, 2025

Summary of changes

Closes #1754

The functions to calculate the mapping from virtual key code to scancode are already there, we just need to pass the correct values.

Manually tested on Windows 10 (after cherry-picked to v4.0.3).

Pull Request Checklist

  • Changes have tests
  • News fragment added in news.d. See documentation for details

@user202729
Copy link
Member Author

user202729 commented Jul 16, 2025

actually looks like this may still fail for uppercase characters, needs more testing. still, this is better than the status quo.

edit; the issue with uppercase character appears to be code being shift instead of shiftL or shiftR which leads to the scan code being zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Key code not correctly sent in Windows
1 participant