How can I remap CTRL-h in Mac OS X?

I'd like to remap CTRL + H from delete to nothing in Leopard.

2

3 Answers

The default ⌃H behavior comes from the Standard Key Bindings file in the AppKit framework resources. You can override this easily.

Create a file with this as the contents:

{ "^h" = ""; }

And save it to ~/Library/KeyBindings/DefaultKeyBinding.dict, creating the KeyBindings folder if it doesn't exist. (Note: you will need to restart your applications for this to start working.)

(Another side note: I'm not entirely sure if using "" is the right way to make it do nothing, but it works. The documentation I found said nothing about any no-op methods.)

4

DoubleCommand will let you do this.

1

If DoubleCommand isn't working for you you could try creating your own keyboard layout using something like Ukelele. I've never done it though, so i'm not sure how much work it is.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like