Skip to content

Instantly share code, notes, and snippets.

@marutanm
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save marutanm/9130167 to your computer and use it in GitHub Desktop.

Select an option

Save marutanm/9130167 to your computer and use it in GitHub Desktop.
POST via shift+return
<?xml version="1.0"?>
<root>
<appdef>
<appname>HIPCHAT</appname>
<equal>com.hipchat.HipChat</equal>
</appdef>
<item>
<name>Swap Enter and Shift+Enter on HipChat.app</name>
<identifier>private.hipchat_return_to_shift_return</identifier>
<only>HIPCHAT</only>
<autogen>__KeyToKey__ KeyCode::RETURN, ModifierFlag::NONE,
KeyCode::RETURN, ModifierFlag::SHIFT_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::RETURN, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
KeyCode::RETURN
</autogen>
</item>
<appdef>
<appname>SKYPE</appname>
<equal>com.skype.skype</equal>
</appdef>
<item>
<name>Swap Enter and Shift+Enter on Skype.app</name>
<identifier>private.skype_return_to_shift_return</identifier>
<only>SKYPE</only>
<autogen>__KeyToKey__ KeyCode::RETURN, ModifierFlag::NONE,
KeyCode::RETURN, ModifierFlag::SHIFT_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::RETURN, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
KeyCode::RETURN
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment