5

I am using a Mac after five years of Linux. I had remapped "Caps Lock" to "Ctrl" and swapped the "`" with Escape.

I was able to figure out how to convert Caps Lock to a Control, but can't figure out how to do the second. Please suggest a good tool so I don't have to undo many years of muscle memory.

(I use OSX Lion)

2
  • With Apple recently removing the Esc key from their keyboards, this is again quite topical. I found additional useful hints in apple.stackexchange.com/questions/283252/… which doesn't require a third-party application. For what it's worth, the key on the upper left has the glyph § on it on many Nordic keyboard layouts, rather than ` ` `.
    – tripleee
    Commented Jan 23, 2019 at 8:54
  • See also apple.stackexchange.com/questions/154188/… which informs us that KeyRemap4MacBook was renamed Karabiner and then was reborn as Karabiner Elements.
    – tripleee
    Commented Jan 23, 2019 at 11:48

3 Answers 3

3

KeyRemap4MacBook

A preference pane with currently about 1500 remapping options. Includes Backquote(`) to Escape and Escape to Backquote(`).


Ukelele

You could create a custom .keylayout like this:

Esc on the layout above worked with all of the things I tested:

  • OS X UI actions like canceling a dialog and exiting full screen
  • On some websites with keyboard navigation like Google Search
  • As a meta key in Terminal.app

Modifying special keys from a .keylayout usually results in some unexpected issues though.

0
2

The only way I know of doing this is by using a third party app; BetterTouchTool. Set it up to look like this : enter image description here

Create an applescript with tell application "System Events" to key code 53 and save it. Then add a new shortcut to BTT which runs the script.

1
  • Hey! This seems like overkill for this, but thanks for letting me know of such a neat tool. I can see a lot of other things I can do with this.
    – skyronic
    Commented Oct 28, 2011 at 6:53
2

The inconveniently named KeyRemap4Macbook should do that, without the need for an external applescript.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .