pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 309 forks source link

key name for round brackets #784

Closed henryw374 closed 7 years ago

henryw374 commented 7 years ago

Hi, sorry if this is noob nonsense. I'm looking to map a key to type ( . Can't see a key name for that, is there a way to refer to that? Thanks

dunkarooftop commented 7 years ago

It's "9" + "SHIFT" so

KeyCode::KEY_9, ModifierFlag::SHIFT_L,

henryw374 commented 7 years ago

hm ok. so this is the kind of thing I want to do

"left_shift": "KeyCode::KEY_9, ModifierFlag::SHIFT_L",

but I can't find any examples in the repo that are not just "simple" modifications using named keys. And putting that line in the file is not working. is there a way to name that key combo, then use that in modification?

Thanks

dunkarooftop commented 7 years ago
<autogen>
        __KeyOverlaidModifier__
        KeyCode::SHIFT_L,
        KeyCode::SHIFT_L,
        KeyCode::KEY_0, ModifierFlag::SHIFT_L,
</autogen>

But it comes with the default setting, Open Karabiner on the top left search "programmer setting" it's under "Shifts to Parentheses"

Now when you tap SHIFT_L it will output ( and when hold down will act as SHIFT

to learn more you can study the doc https://pqrs.org/osx/karabiner/xml.html.en

wait just look at your example again looks like a setting for "Karabiner-Element" this is "Karabiner" github, for Karabiner-Element go to https://github.com/tekezo/Karabiner-Elements

henryw374 commented 7 years ago

sorry you're right. wrong repo. It is elements