-
Notifications
You must be signed in to change notification settings - Fork 2
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
Mapping multiple keys to other keys #6
Comments
Hello again! {
"key_code": 33,
"mapped_sequences": {
"down": [
{"key": "braceleft"}
],
"if_modifiers": {
"Alt": {
"down": [
{"key": "bracketleft"}
]
}
}
}
} Why we have to use the command overlay for now for modifiers: TL;DR: |
Impressive! I don't have time to test it out right now, but I will get around to it soon. Again, thanks for the swift turnaround. |
It works! Good work! Although I've discovered that using "mapped_sequences" the "key" values are interpreted back to a keycode using the keyboard layout of the actual keyboard. For example, right now I'm on a computer whose hardware keyboard is US, but I'm using a Danish keyboard layout, and therefore the "braceleft" keysym maps to "å" (since the keyboard has the "{" key where a Danish layout has "å"). It seems to work fine when using "mapped_keysym", so it's only a problem with "mapped_sequences". But I managed to work around it by using modifiers :) |
This seems to happen because a single key_code can generate multiple keysyms. It is possible to get the key_code that generates a given keysym (this is what I am doing), but I have not found out until now how to get the required modifiers, given the keysym. |
Hi, it's me again! The only thing I'm missing now is the ability to map a key with multiple modifiers to another key. That is, I for example have mapped Caps+p to
{
which works fine, but I'd also like to map Caps+Alt+p to[
. I suppose one way to do it would be an extra overlay with "Caps+Alt", which would be fine for me as long as you could have many overlays.Thanks again!
The text was updated successfully, but these errors were encountered: