Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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
<item>
<name>test</name>
<identifier>private.test</identifier>
<not>MAIL</not>
<autogen>__KeyToKey__ KeyCode::Q, KeyCode::A</autogen>
</item>

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

<appdef>
<appname>TEXTEDIT</appname>
<equal>com.apple.TextEdit</equal>
</appdef>

See http://pqrs.org/macosx/keyremap4macbook/xml-appdef.html.en 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

You must log in to answer this question.

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