I would like to type { and } with one key stroke. I attempted to created a shortcut replacing [ and ] with { } on OSX Keyboard settings but turns out I need [] too. It seems like the only "extra" buttons are the right command and option but I can't seem to configure this shortcut. Would anyone know how?
Alternatively I was looking into this keyboard:
When I ask Apples sales reps if F13/14 can be changed to { } there is a very long pause and no answer.
Alternatively, is there another keyboard that supports this function?
I saw threads on this from almost 20 years ago but nothing recent!
42 Answers
You can almost do this with the built-in Keyboard -> Text preferences. Just add a definition for "{" and set it to "{}". You actually have to hit another key (like space or return, or maybe anything) to make the "}" show up.
The easiest way is to use Karabiner-Elements
You can find complex modification examples on
There you can search, for example "brackets", and you will find Exchange square brackets and curly brackets
When you click Import it will open Karabiner Elements and you just need to enable this rule.
Btw I copy ~/.config/karabiner/karabiner.json to my git repository so I can easily track changes I made in configuration.