Sunday, 1 September 2019

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


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



Answer



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


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...