PDA

View Full Version : why does ctrl-h in Mail make messages disappear?




mdakin
Jul 23, 2004, 11:02 PM
Hi,

Today I accidentally stumbled across something in Apple's "Mail" program. I found that if I had a message highlighted in Mail's message list and I pressed the "ctrl" key and the "h" key at the same time, the message would disappear. I did this because I was trying to "Hide" the Mail app and accidentallly hit the wrong key ("ctrl" rather than the "open-apple key".) I've been able to reproduce this behavior 100%. To see it just follow these steps:

1. In the upper part of the standard "Mail" window, click on a message to highlight it. Highlight a useless message or a test message you've sent yourself.
2. Press "ctrl" and "h" at the same time.

At this point the message will be removed from the list!!

Does anyone know what is happening here?? I've done some searches and I can't find anything.

Thanks for any help!!

-Mike



jsw
Jul 23, 2004, 11:09 PM
It's an undocumented shortcut for delete - control-h is equivalent to "delete" in many old editors/command line tools.

You can undo it with command-Z.

Your deleted mail will appear in the Trash (Mail's Trash) - and, interestingly, stays there even when you undelete it - apparently, undelete copies it back insteadof moving it back.

mdakin
Jul 24, 2004, 02:07 PM
Thanks for the quick, informative response!!

-Mike

supremedesigner
Apr 10, 2012, 09:46 PM
Thanks! Never knew that. Glad I stumbled into this almost decade old thread :) It's still there on Lion. Wondered why it was never removed?

throAU
Apr 10, 2012, 10:11 PM
Thanks! Never knew that. Glad I stumbled into this almost decade old thread :) It's still there on Lion. Wondered why it was never removed?

Because OS X is unix, and the unix keycode for delete is (the same as) ^H

If they were to get rid of it, they would break compatibility with unix.

Mal
Apr 11, 2012, 10:56 AM
("ctrl" rather than the "open-apple key".)

Since you've gotten your answer, I just wanted to comment how awesome it was to see someone refer to the "open-apple key". I don't even know for sure you were referring to it that way because of the days of the open-Apple and closed-Apple keys, but it made me smile.

jW