Skip to content

Instantly share code, notes, and snippets.

@nitinthewiz
Forked from DanSkeel/private.xml
Created August 18, 2016 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitinthewiz/521c4822ef26efff4fed5965527cc4ec to your computer and use it in GitHub Desktop.
Save nitinthewiz/521c4822ef26efff4fed5965527cc4ec to your computer and use it in GitHub Desktop.
Settings for Karabiner to enable Shift+Enter shortcut for newline in Messages app
<?xml version="1.0"?>
<!-- Documentation: https://pqrs.org/osx/karabiner/xml.html.en -->
<root>
<appdef>
<appname>Messages</appname>
<equal>com.apple.iChat</equal>
</appdef>
<item>
<name>Enable Shift+enter newline shortcut in Messages app</name>
<identifier>private.Messages.NewLine</identifier>
<uielementrole_only>AXTextArea</uielementrole_only>
<only>Messages</only>
<autogen>
__KeyToKey__
KeyCode::RETURN, ModifierFlag::SHIFT_L | ModifierFlag::NONE,
KeyCode::RETURN, ModifierFlag::OPTION_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment