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.

At work on my windows machine I've used Autohotkey to remap the CapsLock key to ESC. I've gotten used to it and on my personal machines (mac) I keep hitting CapsLock out of habit when I want ESC.

How do I do the mapping on the Mac? The keyboard & mouse prefpane has some basic options for the capslock key, but that only lets me reassign it to ctrl, command, or option.

share|improve this question
add comment

3 Answers

In response to your question, I just put out a new version of Consistent Keyboards that can do this. It's a undocumented feature, however, and requires a manual step to turn on, as follows.

After installing version 0.7, edit the file /Library/Application Support/Ljosa/Consistent Keyboards/config.plist. Change the value of x-caps-lock-is-esc from false to true. Finally, do sudo launchctl stop com.ljosa.consistent-keyboards to restart the program with the new settings.

share|improve this answer
add comment
up vote 5 down vote accepted

My friend pointed me to something that worked. He said to install both PCKeyboardHack and KeyRemap4MacBook. PCKeyboardHack allows for remapping capslock, while the other one seems to allow for a lot more remapping. I'm not sure if both are actually required (you might be able to use just PCKeyboardHack), but I installed both just to play with them. Seems to be working well for me.

share|improve this answer
add comment

You can try DoubleCommand. I haven't personally used it but based on a screenshot there's an option to remap the Caps Lock key to ctrl. You may be able to change that to Esc.

share|improve this answer
2  
It has a couple options for remapping the capslock key, but it doesn't actually let you pick arbitrary mappings, only the couple the app supports. Sadly, it doesn't look like ESC is one of them. –  Herms Jul 28 '09 at 20:10
    
It is open source, and I added a patch some time ago to do this mapping. I'll hunt it down. –  Matthew Schinckel Jul 29 '09 at 2:07
1  
There are a couple of patches, some I submitted, and some from someone else: sourceforge.net/tracker/?group_id=65339&atid=510607 –  Matthew Schinckel Jul 29 '09 at 2:11
add comment

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.