Closed kylebrandt closed 9 years ago
Managed to figure it out I think:
<autogen>
__KeyToKey__
KeyCode::D, VK_OPTION | ModifierFlag::NONE,
KeyCode::BRACKET_LEFT,
</autogen>
However I still don't understand what was wrong with my other one, or how this one works. I just adapted https://pqrs.org/osx/karabiner/faq.html.en#unicode-hex-input and got lucky....
ModifierFlag::OPTION_L | ModifierFlag::OPTION_R
means "if both the left option key and the right option key are pressed".
The second
<autogen>
__KeyToKey__
KeyCode::D, VK_OPTION | ModifierFlag::NONE,
KeyCode::BRACKET_LEFT,
</autogen>
will be expanded two autogens:
<autogen>
__KeyToKey__
KeyCode::D, ModifierFlag::OPTION_L | ModifierFlag::NONE,
KeyCode::BRACKET_LEFT,
</autogen>
<autogen>
__KeyToKey__
KeyCode::D, ModifierFlag::OPTION_R | ModifierFlag::NONE,
KeyCode::BRACKET_LEFT,
</autogen>
Thanks for explaining. I even read about the pipe in the documentation but inserted it to mean "or" in my head :-P
For example I would like to turn option+d into a [. When doing this I still end up with a rounded d (∂).
I have tried:
EventView output: