Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
Did you try to fix it for the emacs command-line client? Aquamacs? or what? –  jtbandes Sep 2 '09 at 6:23
    
Was trying to get emacsformacosx.com to work. Still no luck. –  Justin Tanner Jul 24 '11 at 7:35

3 Answers 3

up vote 3 down vote accepted

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.)

share|improve this answer
    
Looks like you can use "noop:" as nothing. Interesting but install can't get this to override the system behavior –  Justin Tanner Aug 28 '09 at 4:05
    
I'm absolutely sure it works for me. Are you sure you're restarting your applications? Maybe try logging out and back in, or restarting your computer. Note, this will only work in apps which use the normal OS X text entry, no old nasty Carbon apps, I'm pretty sure. –  jtbandes Aug 28 '09 at 5:40
1  
Also make sure you're putting it in the right place, your library folder. A good way to test would be to change it to "^h" = ("insertText:", "ctrl-h pressed"); temporarily, or testing things besides ^h. (I think "noop:" only works because it's not actually a method, so nothing happens.) –  jtbandes Aug 28 '09 at 5:42
    
Okay good i was able to remap ^h for most apps except emacs 23.1 ( the app i really cared about ), which is cocoa i believe. –  Justin Tanner Sep 2 '09 at 2:32

DoubleCommand will let you do this.

share|improve this answer
    
I tried double command but it froze my keyboard completely –  Justin Tanner Aug 21 '09 at 5:09

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.

share|improve this answer

Your Answer

 
discard

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.