Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to know how do I tell KeyRemap4MacBook to exclude an app from key remapping. I know about <only> tag in private.xml, which limits key remapping to a single app, but is there a tag that has the opposite meaning i.e. remapping to all apps but some?

share|improve this question
up vote 1 down vote accepted
<autogen>__KeyToKey__ KeyCode::Q, KeyCode::A</autogen>

The default application names are defined in appdef.xml, but you can add new ones in private.xml:


See for more information.

share|improve this answer
Thanks a bunch! – Desmond Hume Mar 14 '13 at 12:41
What about if you want to disable all remaps for a specific application? For example I have a bunch of global settings enabled but I want to disable all of the when I am in the application Sublime Text – Noah Jul 20 '13 at 19:18
@Noah Just add a not element to them like in the example above. If they are predefined settings, you can copy them from checkbox.xml to private.xml. – user495470 Jul 21 '13 at 10:10

Your Answer


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.