1

I'm looking for a way to change the default "send" shortcut in mail to "tab + enter" (like gmail)

I've found a way to change it to cmd + enterwith the following:

defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"

but doing something like:

defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "\\u21E5\\U21a9"

Does not work.

I've followed this answer, but I am unable to add the tab key in the shortcut dialog, and would prefer to do it from the command line.

Thanks!

2

Because tab isn't a modifier key (like command, shift, option and control), you can't use it in combination with other non-modifier keys to make a shortcut. It's simply not possible the way the OS X input systems work AFAIK.

You might be able to jury-rig something together using KeyboardMaestro or similar apps that listens for tab-return and then executes the send mail command, but I don't know how well it would work, or how closely it would match your expected behaviour.

  • Alas, I will have to face the pain and just re-learn that shortcut when I am using mail. Thanks for the help! – Nick Tomlin Nov 13 '12 at 18:41
1
defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" $'@\\U21a9'
  • Welcome to Ask Different. We like answers to be more than just a single line. Ideally, you want to explain why your answer is *right." It also helps to provide links, citations, and/or screen shots. Please review our help section How to Answer on writing good answers to questions – Allan Mar 30 '17 at 1:03
0

You could save this as private.xml in KeyRemap4MacBook.

<?xml version="1.0"?>
<root>
<item>
<name>test</name>
<identifier>private.test</identifier>
<only>MAIL</only>
<autogen>--SimultaneousKeyPresses-- KeyCode::TAB, KeyCode::RETURN, KeyCode::D, VK_SHIFT, VK_COMMAND</autogen>
</item>
</root>

You must log in to answer this question.

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