Closed Bug 90539 Opened 23 years ago Closed 22 years ago

delete key does not work in standalone message window

Categories

(SeaMonkey :: MailNews: Message Display, defect, P2)

x86
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.3beta

People

(Reporter: lyecies, Assigned: sspitzer)

References

Details

Attachments

(1 file, 2 obsolete files)

 
could you pls be a little more precise?
which os do you use? which build do you use?
what do you mean by "navigating from mail window"
what is the delete button?! do you mean backspace or del ?
am using windows 98, branch build from July 11
when reading a message (i.e. not from 3 pane UI but with a single message fully 
open) the delete key (not backspace) does not operate
See also bug 80574, make a pref for delete to go to the next message instead of 
closing the standalone message window.
Summary: delete button on keyboard does not work when navigating from mail window → delete key does not work in standalone message window
Status: UNCONFIRMED → NEW
Ever confirmed: true
I am seeing this in 2001083003 on Win2k as well.  Is anyone working on this?  It
doesn't appear to have been triaged as there are no keywords, or target.

To clarify description:
Current Behavior: An email is opened in a dedicated window by double-clicking on
it.  Hitting the delete key causes no reaction.

Expected behavior: Hitting Delete key should delete email message and the
behavior outcome from bug 80574 should kick in.
reassigning to ssu.  This sounds related to 64466
Assignee: sspitzer → ssu
Keywords: nsbeta1
*** Bug 106033 has been marked as a duplicate of this bug. ***
But 64466 with the same issue(s) is fixed and verified on trunk only.
Keywords: nsbeta1nsbeta1+
Running RELEASE: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.6) Gecko/20011120

I'm still seeing this.  But, like many errors, sometimes it works - mostly not.
When I've seen it work, if I leave Mozilla because of some other problem and
restart it the delete key action is gone again.  
I found out that if you at least open any menu item (don't have to click on
anything) in the standalone message window, then try the delete key, it works. 
I'm still trying to debug the cause of this.
Status: NEW → ASSIGNED
Priority: -- → P2
Following up on Sean's last observation: the Delete fcn becomes alive after the
*Edit* menu is dropped down (don't click anything).  The other menu choices do
not have this effect.
QA Contact: esther → olgam
Target Milestone: --- → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Blocks: 122274
Keywords: nsbeta1+nsbeta1-
Target Milestone: mozilla0.9.9 → mozilla1.2
No longer blocks: 122274
Possibly related, possibly new bug:
Builds from 2002-03-07 thru 2002-03-14-03 [Win98se]
The key functions "Delete," "Next," and possibly others, appear erratic.
Generally, the start-up state is: "N" works, "Del" does not.
After working for a moderately long time, during which I have mostly done
Toolbar.Delete and Menu.Message.Move operations, I often see the "Del" key
function as it was supposed to.
During similar sessions, I have seen "Del," "N," and "Ctl+U" all become
non-operational.
This last part, especially, smells like a resource problem to me.  
*** Bug 146080 has been marked as a duplicate of this bug. ***
*** Bug 150548 has been marked as a duplicate of this bug. ***
*** Bug 157900 has been marked as a duplicate of this bug. ***
nominating for next release
Keywords: nsbeta1-
*** Bug 160401 has been marked as a duplicate of this bug. ***
*** Bug 162524 has been marked as a duplicate of this bug. ***
*** Bug 148266 has been marked as a duplicate of this bug. ***
*** Bug 165223 has been marked as a duplicate of this bug. ***
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20020926

After being rather benign for a long while ( one &Edit+&Delete "corrects" ), I
am now seeing this hard and not easily fixable.
In standalone, both &Message+&Move and &Edit+&Delete do nothing whatever most of
the time.  I can't predict when it works/fails.  There's some possibility I have
a damaged INBOX.MSF, but I've rebuilt it several times.

I've not found any MENUS action that clears this up now.
QA Contact: olgam → stephend
David: I concur with your assessment -- sometimes the "Delete" button on
standalone message windows will work, but it seems to do nothing much of the
time. Occasionally, closing the standalone window and deleting the message from
the mailbox-list ends up work. 

Even then on the mailbox-list, delete doesn't always take affect. In those
cases, I find that I can only close Mozilla and restart it to delete messages
once again. 

I'm using IMAP, if that's of any help. David: You may also be interested in bug
63550, as that may more accurately describe our problem.
The delete "button" works for me, but not the delete "key" from the standalone
message window.  Looking into this some more...
*** Bug 180621 has been marked as a duplicate of this bug. ***
Attached patch Partial patch (obsolete) — Splinter Review
Following on from comment 10, the problem is that the delete key tracks the
state of the delete menuitem, which is only updated when the menu is opened.
For historical reasons the 3pane window updates it when the toolbarbuttons are
updated, although it is still possible to confuse the 3pane window by opening
the edit menu when the focus is in the header area.
So, this patch does three things:
1. Makes the delete ley go straight to the command controller
2. Stops the toolbarbutton update from updating the menuitem (perf)
3. Reduces the focus ring toolbarbutton updates (perf)
Note that this patch only contains the diff for win/
this patch doesn't seem to fix it for me.

I still need to open the edit menu to get delete to work.

can we just make the stand alone msg window do the same thing that the 3 pane does?

I'm hoping for something low risk
Attached patch patch, based on neil's findings (obsolete) — Splinter Review
the core of this patch is to fix the code the sets focus to the message pane
(that wasn't working, either!) and then to call the code to update commands on
the focus.

I'll seek review from neil.
Attachment #111297 - Attachment is obsolete: true
taking
Assignee: ssu → sspitzer
Status: ASSIGNED → NEW
Target Milestone: mozilla1.2alpha → mozilla1.3beta
accepting.

neil, can you review?
Status: NEW → ASSIGNED
Comment on attachment 111637 [details] [diff] [review]
patch, based on neil's findings

>+  setTimeout("OnLoadMessageWindowDelayed()", 0);
Nit: use setTimeout(OnLoadMessageWindowDelayed, 0);

>+  UpdateMailToolbar('focus');
I'm reluctant to condone this lame hack...
Attachment #111637 - Flags: review?(neil) → review-
I'n not 100% that the call to UpdateMailToolbar('focus'); is over-kill

I'll have to look into why we do that, in th 3 pane, when the message pane gets
focus.

neil, I'd rather be consistent with the three pane, and call UpdateMailToolbar()
on focus and pay the extra performance hit for correctness, simplicity, and to
avoid regressions.

I'll fix the other nit you point out, and attach a new patch.

if you think there is valuable perf gains to be got by removing the call
UpdateMailToolbar() on focus, let's spin up a new bug.
Attached patch updated patchSplinter Review
Attachment #111637 - Attachment is obsolete: true
fixed.

note to QA:

if there is a bug out there about how the scroll keys don't work right away,
that is now fixed since I fixed the code that send focus to the message pane.

note to neil, if you think this is worth optimizing (I don't), let's spin up a
new bug.

with so few of us, I'd rather keep things simpler.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You don't need to update the toolbar buttons because they already all default to
enabled in the message window.

And you shouldn't have to update cmd_delete because you shouldn't be using it
(except via goDoCommand, or via the edit menu that updates it anyway).
*** Bug 191406 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: