Skip to content

Instantly share code, notes, and snippets.

@DanSkeel
Last active November 30, 2022 21:39
Show Gist options
  • Save DanSkeel/2a98f54cc672bed3cb3b to your computer and use it in GitHub Desktop.
Save DanSkeel/2a98f54cc672bed3cb3b 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>
@shawnhank
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment