-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support German (de-DE) keyboard layouts when pasting (#1842)
This PR adds a detection mechanism for the German `de-DE` locale in the paste feature. In this case, it uses the correct mapping, and ensures that all characters come through correctly. ## Original PR description Hi, I added the translation table for German Special Characters. The Manual definition of `ALT_GR` is necessary since on german layouts the `AltGr` Key doesnt behave like the `MODIFIER_RIGHT_ALT`. In Tinypilot, pressing `AltGr` is interpreted like `Ctrl Left + Alt Right` which translates to hex `0x41`, but it should be `Ctrl Left + Alt Left` (Hex `0x05`) to work for German Special Characters. Closes #1830 For an Quick overview for anyone later reading this, this would support the following special Characters: ``` !"§$%&(){}[]/+*#'-_.:,;äöüÄÖÜ<>|€?ß\~`´ ``` Greetings from Germany :) <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1842"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a> --------- Co-authored-by: Jan Heuermann <[email protected]>
- Loading branch information
1 parent
b3be4fa
commit a287d8e
Showing
4 changed files
with
120 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters