Shift+delete is usually used for "cut", but in Mozilla MailNews, it permanently deletes the message without prompting. This means that I can accidentally delete a message when I'm trying to move it. This bug doesn't cover other methods of permanently deleting things (delete from trash, shift+click on "delete" toolbar button, etc), but maybe it should.
See also bug 62497, impossible to undo shift+deleting a message.
reassigning to sspitzer. Personally, I don't think there needs to be a prompt. Perhaps the very first time you do this as a warning. But the idea behind it is for it to be a fast way to delete
Assignee: putterman → sspitzer
Is there a spec for this? Can we get one before we add a hunk of UI that many users are not going to want.
Shift delete was force delete [skipping trash] in nc4, i believe that is the correct behavior, and i use it for that purpose. perhaps we should kill Shift-delete as cut support.
I don't see people hitting Shift+Del by accident. Think its ok as a direct delete (skip trash). Does "undo" reverse this action?
no. force deletes aren't undoable. the same is true w/ windows explorer.
I think what the reporter is prob referring to is the older win3.1 keyboard shortcuts for clipbaord transfer. Yes they did not always have acc-x,c and v. Many apps on win32 systems still support these older shortcuts (although they are not showing them) alongside with the newer familiar ones.
Agree that shift+delete sometimes means "cut". Should it bring up a confirm dialog with a checkbox "Don't show this dialog again"? BTW, do we have a generic way of easily creating dialogs like that?
Aaron, it's very easy with nsIPromptService.
I made a patch to prompt user if Shift+Delete is pressed. I will post it here soon.
Created attachment 99810 [details] [diff] [review] Patch V1 Show a dialog to prompt user to confirm if they shift+delete the message. There are two cases here, one in mail 3 pane window and the other in standalone message window. Since the focus is on the OK button by default, it is very handy for the user to press SPACE bar to confirm the deletion. Outlook and OE have this dialog. I'd like mozilla have this dialog, too. This can avoid accidently deletion of messages. I have made this mistake before. seek r= and sr= for this patch.
this would make shift delete useless. It's meant to be the fastest way to delete messages, no trash, no confirmation, etc. The only way this should be considered is if it was controlled by a pref that was turned off by default.
I can make it controlled by a pref that was turned off by default. Do we want to make it a hidden pref or user can control it through preference GUI?
Created attachment 99945 [details] [diff] [review] Patch V2 (Added preference control) This patch added a preference item in Edit-->Preferences-->Mail & Newsgroups's General Settings. If we just want a hidden preference, just ingore the changes to pref-mailnews.xul, pref-mailnews.dtd. Please r= this patch. Thanks!
Attachment #99810 - Attachment is obsolete: true
>no. force deletes aren't undoable. the same is true w/ windows explorer. I just tried it (on an imap server), and undo works. so why do we need this patch?
that's a good point. Unfortunately, it doesn't work for local folders (there's a bug filed on that). I think it would be better just to fix undo for local folders than to put this patch in.
As I checked, the "Can't undo shift delete of local messages" bug id is 132121. If undo for "Shift+Delete" for all messages works, I agree with the above comments. bienvenu, so can I mark this bug as WONTFIX?
yes, thx, I'll just mark it wontfix while I'm here.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → WONTFIX
QA Contact: sheelar → stephend
verified, I think (and hope) that a consensus has been reached.
Status: RESOLVED → VERIFIED
*** Bug 225713 has been marked as a duplicate of this bug. ***
There's a prompt since 2013. So, someone dupes this bug to bug 308690?
You need to log in before you can comment on or make changes to this bug.