Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create custom keybindings System
If you'd like to easily type some non-standard glyphs, adding a custom keybinding might prove useful.

The keybindings file is located in ~/Library/KeyBindings/ (You will probably have to make this directory and then add a file named "DefaultKeyBinding.dict".]).

The syntax for these keybindings are:
"[keycombination]" = ("insertText:", "\[unicodenumber or actual character]");
"~*" = ("insertText:", "\U0215"); /* the times-symbol "" */
In this "Keycombination" field:
@ = cmd key
$ = shift key
~ = option key
^ = ctrl key
# = keys on number pad

More on the keybinding syntax at

[kirkmc adds: We've also got a 2006 hint that goes into some detail about similar keybindings.]
  • Currently 4.17 / 5
  You rated: 5 / 5 (6 votes cast)

Create custom keybindings | 3 comments | Create New Account
Click here to return to the 'Create custom keybindings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create custom keybindings
Authored by: pbeyersdorf on Sep 06, '12 11:03:33AM
There is also a nice GUI for doing this called ukelele. I have mapped all of the keys with the option key held down to be the corresponding greek letters or mathematical symbols, which makes entering text like ∇φ=ks a snap.

[ Reply to This | # ]
Create custom keybindings
Authored by: bjast on Dec 09, '13 08:27:50AM

Hmm ... I have tried this, but so far under Mavericks I have not been able to get this to work.

I have created a directory in ~/Library called Keybindings, and have placed a text file in there with my modified key command. Then restarted my MacBook Pro, and nothing changed.

Does this file have to be named exactly: DefaultKeyBinding.dict?

For clarity sake I have named mine: DefaultKeyBindingBJ.dict

[ Reply to This | # ]
Create custom keybindings
Authored by: bjast on Jan 21, '14 10:54:45PM

Any takers? I still have yet to figure this out ...

[ Reply to This | # ]