Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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. –  Lri Jul 21 '13 at 10:10
add comment

Your Answer

 
discard

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.