mirror of
https://github.com/quasar/Quasar.git
synced 2026-04-25 15:25:59 +03:00
[GH-ISSUE #194] [Keylogger] Handle Modifier key AltGr correctly #81
Labels
No labels
bug
bug
cant-reproduce
discussion
duplicate
easy
enhancement
help wanted
improvement
invalid
need more info
pull-request
question
wont-add
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Quasar#81
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 @MaxXor on GitHub (May 25, 2015).
Original GitHub issue: https://github.com/quasar/Quasar/issues/194
When pressing
AltGr + 2it shows[Control + Alt + D2], correct behaviour would be².If your keyboard doesn't have an AltGr key, you can also use
Control + Altfor this.@ghost commented on GitHub (May 25, 2015):
I will keep looking into this. From what I've read, and experimented with, this might not be a feasible fix, but I won't give up!
@ghost commented on GitHub (May 25, 2015):
This explains what I have experimented with.

The differences between the two keypresses resulted in the following, on my system with a german keyboard layout (non german keyboard):

There might be some way to hack this together to detect if the last two KeyDown keys are equivalent to the AltGr input data, and emulate the input to get the unicode value from the ToUnicodeEx method. Initally, pressing Alt Gr would post the symbol character to the active window, however our KeyPress event wouldn't receive the symbol (UnicodeEx would not return the character) I'll play around with it and see what I can come up with.
This is what I mean by emulating AltGr:
