How to remap "Context Menu" key in Mac OS X?

Viewed 19025

I have a Logitech keyboard (Ultra-Flat Keyboard Dark Shine to be exact), which has the context menu key in the middle of the windows and alt key, which is quite annoying.

Here's a screenshot of where the key is:

http://freshlog.com/grabs/ff532-How_do_I_remap_the_context_menu_key_in_Mac_OS_X

I can remap the windows and alt keys under the default Keyboard System Preferences Panel, but there doesn't seem to be a way to remap the context menu key.

Any ideas?

6 Answers

Use KeyRemap4MacBook (Karabiner for osx 10.9, 10.10). As Mecki pointed out, XML .keylayouts / Ukelele can't solve your problem.

In spite of the name, KeyRemap4MacBook works on any Mac (OS X 10.4 or later).

The settings you want are under "For PC Users" » "Change PC Application Key".

enter image description here

The latest MacOS versions are served by Karabiner Elements 12.1.
Key-to-key remapping are done in the Simple Modifications tab and conveniently selected in 2 rows of drop-down-menus (see: screenshot).

Complex Modifications in this Preferences Panel's tab have either to be added by importing them from the internet (Karabiner-E.'s site) or from the user's ~/.config/karabiner/assets/ complex_modifications folder.
"Complex" ones from the net actually are also copied there and switched "on" (= [+ Enable]) in the tab.

ALL modifications are finally stored (& thus "activated") in ~/.config/karabiner/karabiner.json.

A pragmatic procedure (that also helps avoid mistakes while writing complex-mods yourself) is to copy & rename & alter one "imported" mod.
Once you are experienced (e.g.: different bracket types) it may be easier to edit the json file directly…


(Inline graphic shows part of drop-down-menu)

There is no longer the option to constrict remaps to specific windows (can be simulated by an osascript AppleScript) as some other features.
A non-Element version of Karabiner is being developed.

Two sites to get information & questions (answered) – but please search for previous "doubles" !:

github.com >> Karabiner-Elements
groups.google.com/forums/ osx-karabiner

Related