I'd like my Option and Alt keys to switch places in certain applications. Is there any way to change the modifier keys according specific applications in Mac OS X?

Alternatively; is there "an application for that"?

link|improve this question

75% accept rate
3  
Option and Alt are the same key. Is this just a mistake, or do you really somehow simultaneously want both the OS X Option and the Windows/Linux Alt to sit on different keys? – Arjan May 15 '10 at 12:59
I guess it's a typo and he meant "option", "command" and/or "control". Still, you have a point. – Lohoris May 16 '10 at 15:35
You can remap individual menu items of a specific application in System Preferences » Keyboard » Keyboard Shortcuts » Applications. Especially if you want to switch Option and Control, this might be a viable choice. – Daniel Beck Dec 4 '11 at 19:49
feedback

closed as not a real question by studiohack Dec 4 '11 at 20:49

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

2 Answers

You may build a different keymap and switch keymap when you switch application. I don't know if Ukelele allows you to change the position of the modifiers key, but if it doesn't I guess you still can edit the XML by hand.

(still, I think you'd better accept the proper keys rather than doing this dirty workaround)

link|improve this answer
You can't swap the modifier keys in a .keylayout (or with Ukelele). You could switch the keymaps under ⌥ and ⇧ for example, but that would only affect text output, not shortcuts in most cases. (⌘ and ⌃ don't usually even have output.) – Lri Jul 28 '11 at 4:47
feedback

I use Ukulele for a PC keymap (there are included Logitech keymaps for OSX86 users). DoubleCommand is a great app to swap Command, Option and Control, and it can correct the behavior of the Home/End keys on PC.

link|improve this answer
feedback

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