Skip to content
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

badge pastes character codes that don't match up with keyboard layout #4

Open
shadow-absorber opened this issue Aug 26, 2021 · 3 comments

Comments

@shadow-absorber
Copy link

when editing the keys to send https://github.com/shadow-absorber on a swedish iso keyboard you get the garbled output of httpsÖ--github.com-shadow+absorber instead of the expected link.... changing the keyboard layout of the entire system on ubuntu 20.04 fixes the bug temporarily but is not a graceful solution

@shadow-absorber
Copy link
Author

changing the keyboard input method to english us fixes the problem temporarily but doing that everytime you want to use the key buttons is obviously troublesome

@compukidmike
Copy link
Owner

This is a limitation of the way HID keyboards work. They send keys based on the default (US ANSI) keyboard layout and the computer modifies the keystrokes based on the localization setting. This was done so that keyboard manufacturers didn't have to change hardware/firmware for each language, just change keycaps.

You have a couple options:

  1. add localization options to the badge (this would be a LOT of work that I don't have time for. If you have time, go for it!)
  2. figure out what keys map to what in your localization and enter those keys into the badge instead. It'll look wrong going in, but should provide the correct output.

@shadow-absorber
Copy link
Author

ah no experience with coding for this type of stuff so option 1 is out and option 2 feels like a lot of work figuring out what to do so going to hope someone else figures out what to do in the mean time shadow guess they are just going to switch the keyboard layout any time they want to use it to put out the code

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

No branches or pull requests

2 participants