Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have customized text editing bindings in ~/Library/KeyBindings/DefaultKeyBinding.dict but they all stopped working in when I upgraded to Lion. They still work fine in other Cocoa apps like Safari.

The system default bindings like ^F for moveForward: work as usual.

Has anyone else who uses DefaultKeyBinding.dict noticed this? Is there a way to fix it or any other way of customizing the key bindings in TextEdit?

share|improve this question
The custom keybindings work normally for me in TextEdit. Have you tried replacing your DefaultKeyBinding.dict with something like {"a"=(insertText:,"test");}? – ؘؘؘؘ Jun 7 '12 at 0:46
@LauriRanta thanks; knowing that I was the only one with the problem got me to finally investigate it properly. – mckeed Jun 7 '12 at 14:40

1 Answer 1

up vote 6 down vote accepted

The problem was that I had moved the actual DefaultKeyBinding.dict file somewhere else for version-control purposes and symlinked to it.

Most apps were loading the file through the symlink, but TextEdit (and, it turns out, a couple other apps that I thought just didn't support key bindings) must do something different and didn't see it.

So, oops, lesson learned. Don't symlink your system configuration files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.