I bought a cheap Chinese replacement keyboard for my late 2007 MBP. The close square/curly bracket key actually sends a left control signal to the Mac. So I'm trying to remap my backslash/pipe key to be close square/curly bracket but I can't find the key remapping software to do it. Double Command and KeyRemap4Macbook can't do arbitrary key remaps and uControl/fkeys don't work on Snow Leopard. Anyone have ideas? I have no problem editing text config files if necessary.

link|improve this question
feedback

4 Answers

up vote 2 down vote accepted

Use Ukelele to create your own keyboard layout.

link|improve this answer
feedback

Other stuff that could be useful:

The close square/curly bracket key actually sends a left control signal to the Mac.

That could be hard to change with Ukelele, in case that key has the same key code as ⌃. (A bit like the left and right ⌥, ⇧ and ⌘ each have the same key codes.) At least ⌃, ⌥, ⇧, ⌘, fn and ⇪ can't be changed at all from the .keylayout files. (Or Ukelele, which is a GUI for editing them.)

link|improve this answer
Yeah - I left the close square bracket key as-is and reassigned the backslash/pipe key. As far as the laptop is concerned, the close square bracket key is a physical left control key. – Mason Mar 15 '11 at 13:31
feedback

You can try this method of using applescript to map keys differently.

link|improve this answer
It just opens the Keyboard preference pane in system preferences, where the assignment of modifier keys can be changed. That person's problem is that he wants to switch the setting regularly, therefore uses GUI scripting. That dialog is far from "arbitrary key remaps" though. – Daniel Beck Mar 13 '11 at 23:40
feedback

KeyRemap4MacBook might be useful as well.

link|improve this answer
My post specifically states that it does not work for what I'm doing. – Mason Mar 15 '11 at 13:30
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.