mirror of
https://github.com/keycastr/keycastr.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #56] Mismapping Azerty/Qwerty #43
Labels
No labels
bug
compatibility
discussion
documentation
enhancement
help wanted
help wanted
investigation needed
pull-request
release
visualizer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/keycastr#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZorGleH on GitHub (Mar 8, 2016).
Original GitHub issue: https://github.com/keycastr/keycastr/issues/56
Hi,
I'm using an Azerty keyboard on latest OSX and latest keycastr to date. When I type "W" (major double w), it displays "Z". And vice-versa. Not the case for minor "z" or "w".
End of report 👍
@scottopell commented on GitHub (Apr 22, 2016):
Same thing happens for Dvorak Keyboards.
For example, uppercase
wandhdisplay as<andJrespectively.This seems to happen with all "shifted" characters (uppercase).
It looks like some of the responsible code could be in the "transformer" class, since the uppercase letters (and symbols) are listed explicitly, but the lowercase ones aren't.
https://github.com/keycastr/keycastr/blob/master/keycastr/KCKeystrokeTransformer.m#L84
What is the purpose of this code?
UPDATE: It looks like this was added in PR #42 in order to fix symbols and uppercase letters not showing.
I don't have any experience with OSX api calls, but I would think that maybe there's a better api that could be used in which we get the literal character/codepoint vs the "key" that was pressed.
Or lacking that, perhaps there is an api that could "translate" between the key pressed and a character using the current user's keyboard settings.
@scottopell commented on GitHub (Apr 22, 2016):
I don't have XCode installed so I can't test this right now, but I have a theory that the problem is somewhere in these few lines of code
https://github.com/keycastr/keycastr/blob/master/keycastr/KCKeyboardTap.m#L216
I'll try to get XCode setup in the next few days and try out some different combinations.
Other projects seem to be using TISCopyCurrentKeyboardInputSource instead of TISCopyCurrentKeyboardLayoutInputSource
76c940ef69/src/keyboard_mac.mm (L61)Relevant API Docs:
UCKeyTranslateTISINputSourceRef@kirbyk commented on GitHub (Apr 22, 2016):
Hey @scottopell I haven't taken the time to really look into this bug.
I went ahead and tested your potential solution and changing
TISCopyCurrentKeyboardLayoutInputSourcetoTISCopyCurrentKeyboardInputSourceresults in the same issues on Dvorak.Hopefully I can investigate later today and track down the issue. 👀
@Crocmagnon commented on GitHub (Jul 5, 2016):
This issue still affects me as well. Any update on a fix ? 😃
@Bohrbug commented on GitHub (Jul 6, 2016):
Same thing for programmer Dvorak. Would love to see fix. 😅
On Tue, Jul 5, 2016 at 6:19 PM, Gabriel Augendre notifications@github.com
wrote:
@sdeken commented on GitHub (Sep 21, 2016):
Definitely a bug, I'll slate it for the 0.9.5 release and get it fixed
@rawaludin commented on GitHub (Dec 9, 2016):
Same thing for Colemak user here :)
@wincent commented on GitHub (Dec 9, 2016):
@rawaludin: See the links to my commits above. I've hacked around the issue on Colemak, although in a totally non-general way:
50479653c2100230f3a9@pierpo commented on GitHub (Apr 18, 2017):
Still having the issue when using azerty. Not with the alphanumeric characters, but with the special characters.
For example :
*is mismatched as}%is mismatched as"@akitchen commented on GitHub (Apr 18, 2017):
Thanks for trying it out. I would like to see if there's a way to map / decode these using native APIs as opposed to the hard-coded dictionary solution currently in place.
@serverwentdown commented on GitHub (Apr 20, 2017):
👍
For now, here's mappings for programmer Dvorak:
https://github.com/serverwentdown/keycastr/blob/master/keycastr/KCKeystrokeTransformer.m
@akitchen commented on GitHub (Jul 31, 2017):
If anyone is interested in trying out this fix & providing feedback, please try out the build located here:
https://github.com/akitchen/keycastr/blob/master/keycastr/bin/KeyCastr.app.zip
@Crocmagnon commented on GitHub (Aug 2, 2017):
@akitchen, when I try to launch this version I get this error window

When I click on "Grant Access", it prompts me for my password, then exits and restarts the app with the same error window.
I'm using it on macOS Sierra 10.12.6 with a French AZERTY keyboard.
@pierpo commented on GitHub (Aug 2, 2017):
@akitchen Works for me! Thanks :)