Closed
Bug 128101
Opened 24 years ago
Closed 23 years ago
switching focus from message pane to quick search causes typing in quick search to execute commands (like "t","r","n",...)
Categories
(SeaMonkey :: MailNews: Message Display, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0
People
(Reporter: stevepnscp, Assigned: sspitzer)
Details
(Keywords: regression)
Attachments
(1 file, 5 obsolete files)
|
4.96 KB,
patch
|
ssu0262
:
review+
Bienvenu
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
Mozilla Build 2002022408, windows 2000
In the mail windows, I am using the quick search filter textbox.
Most characters I type whle the textbox has focus have the correct action -
the letters are inserted into the textbox.
However, some characters with other bindings in the mail window keep
that binding even when the search filter has focus.
(e.g. 'n' for next message)
The net effect is that when I type an 'n' in the search filter, the next
mail message is selected, and I lose focus in the search filter textfield.
If there are no unread messages in the current folder, a dialog appears asking
me to move to the next folder.
The same thing happens for me in the AIM password-entry field in
the commercial build.
Navin: I think this (see bug 122713) has regressed... it doesn't happen all the
time, but I'm seeing N problems in QuickSearch the first time you focus in the
QSearch text field and use a word starting with n. I'm using feb27 commercial
trunk win98.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: nsbeta1,
regression
Updated•24 years ago
|
I am hitting this more frequently, yet when explicitly trying to reproduce it
doesn't happen.
Comment 5•23 years ago
|
||
Anyone got any reproducible steps for this one yet?
Both Navin and I are seeing this, so it's reproducible over time, just not every
time. But if you're doing searches using n or t in the string you'll probably
hit it eventually. It's a timing thing where we seem to temporarily drop focus
from the quicksearch text field somehow.
Comment 7•23 years ago
|
||
Funny, while reading this bugmail I clicked the Quick Search textbox, hit 'n'
and whoops...! "Do you want to advance to the next unread folder?" :-)
Reproducible steps:
1. Click the message pane
2. Click the Quick Search textbox
3. Hit 'n'
Hwaara, yes, those are the general steps but it does not happen every time. You
are oversimplifying.
Comment 9•23 years ago
|
||
Well, I can reproduce it everytime with those steps. Here's the fix.
The problem was that we have view-navigation available in textfields as well,
but since we don't want it to interfere with Quick Search, we need to check
that Quick Search isn't focused before proceeding with the view-navigation
command (e.g. "n" for next message). (see:
http://lxr.mozilla.org/seamonkey/source/mailnews/base/resources/content/mail3PaneWindowCommands.js#648)
Comment 10•23 years ago
|
||
Calling for reviews. Naving & Seth?
Comment 11•23 years ago
|
||
I'm sorry, you're right. I was reading message pane and thinking thread pane.
I also see it when in thread pane sometimes... and, of course, it's easier to
see when no unread items in the folder so that the cross-folder dialog appears.
| Assignee | ||
Comment 12•23 years ago
|
||
naving is on vacation, so hwaara, feel free to take this bug (or let me know
and I can take it and drive it in.)
I haven't been able to reproduce this bug, but hwaara's fix makes sense.
One suggestion, instead of IsInQuickSearchMode() can you rename your new
function in a way similar to the existing function MailAreaHasFocus()
Maybe, QuickSearchTextInputHasFocus()?
address that, and sr=sspitzer
| Reporter | ||
Comment 13•23 years ago
|
||
I will assume this patch takes care of the quick search mode since I
don't build mozilla myself.
However, it was not obvious to me if this will also fix the AIM password
entry field in the commercial builds.
Laurel - do you see this AIM problem too? (Maybe it happens most when the AIM
window is in the sidebar?)
Thanks for your effort.
| Assignee | ||
Comment 14•23 years ago
|
||
wait, I take back my sr= because the bug is bigger than just navigation.
when I type "r" in the quick search, it will mark mark my selected message as
read, before doing the quick search.
| Assignee | ||
Comment 15•23 years ago
|
||
I'm thinking a better fix for this would be to fix MailAreaHasFocus() to also
include when the quick search text area has focus.
working on a patch...
Assignee: naving → sspitzer
| Assignee | ||
Comment 16•23 years ago
|
||
testing this patch now...
Attachment #73062 -
Attachment is obsolete: true
| Assignee | ||
Comment 17•23 years ago
|
||
Attachment #73081 -
Attachment is obsolete: true
| Assignee | ||
Comment 18•23 years ago
|
||
Attachment #73083 -
Attachment is obsolete: true
| Assignee | ||
Comment 19•23 years ago
|
||
ok, my last patch fixes the "r" problem for me, and should fix the "n" problem
as well, I just can't reproduce that as easily.
I think ssu fixed a bug a while ago where when you'd type in text fields in
messages, we'd label the selected messages.
this just extends on his fix (so that we allow the quick search text field
to "grab" keys) and makes it so two other commands
case "cmd_markThreadAsRead":
case "cmd_markAsFlagged":
are disabled when text areas (including quick search) have focus.
I'll see r= from hwaara and ssu
Status: NEW → ASSIGNED
| Assignee | ||
Comment 20•23 years ago
|
||
>I think ssu fixed a bug a while ago where when you'd type in text fields in
>messages, we'd label the selected messages.
looking at the checkin logs, it might have been naving.
| Assignee | ||
Comment 21•23 years ago
|
||
take a look at http://bugzilla.mozilla.org/show_bug.cgi?id=122713
according that bug, I'd think the "r" problem was fixed and that existing
MailAreaHasFocus() implementaion was enough.
I'm not sure my change to MailAreaHasFocus() is correct.
but I think the other change is correct, because the "r" problem was never
addressed.
I'll continue to investigate.
| Assignee | ||
Comment 22•23 years ago
|
||
whoops, I missed the crucial first step in hwaara's list:
1. Click the message pane
2. Click the Quick Search textbox
3. Hit 'n'
now I can reproduce the "n" problem as well. i'll continue to investigate...
| Assignee | ||
Comment 23•23 years ago
|
||
ok, I think I'm narrowing in on this bad boy.
to solve the "r" problem we'll need part of my fix. but my change to
MailAreaHasFocus() is incorrect.
MailAreaHasFocus() is correct as is.
The problem is that we aren't updating commands when focus goes from message
pane to quick search text area. working on that, and a new patch.
| Assignee | ||
Updated•23 years ago
|
Attachment #73084 -
Attachment is obsolete: true
Attachment #73084 -
Flags: needs-work+
| Assignee | ||
Comment 24•23 years ago
|
||
ok, getting closer.
I think the problem is in the DefaultController.
I think it also needs to use "MailAreaHasFocus()"
testing that theory now...
| Assignee | ||
Comment 25•23 years ago
|
||
bad theory. here's new one:
the DefaultController is ok, but the call to MailAreaHasFocus() is returning
true.
it's doing that because focusedElement is null when I got from message pane to
qs text area.
not sure why yet, but I'm getting closer.
| Assignee | ||
Comment 26•23 years ago
|
||
ok, the interesting part of this fix is the change to MailAreaHasFocus()
the rest is just dead code removal and code cleanup.
Comment 27•23 years ago
|
||
Comment on attachment 73167 [details] [diff] [review]
fix
> function MsgMarkThreadAsRead()
I think you should remove this function altogether, and replace users with
direct calls to MarkThreadAsRead() instead.
Let's have as few layers of abstractions as possible.
Do that and r=hwaara.
| Assignee | ||
Comment 28•23 years ago
|
||
Attachment #73167 -
Attachment is obsolete: true
| Assignee | ||
Comment 29•23 years ago
|
||
updating summary.
note to QA, here's how I'm testing this:
load a folder, select a message, then click in the message pane.
then, click in quick text search area. type a letter that is also a command,
like t,r,n, etc.
in previous builds, this would have executed the command (for t, mark thread as
read) and then do the quick search.
Summary: Mail Search filter has wrong key bindings → switching focus from message pane to quick search causes typing in quick search to execute commands (like "t","r","n",...)
Comment 30•23 years ago
|
||
Comment on attachment 73215 [details] [diff] [review]
same patch, but remove MarkThreadAsRead()
sr=bienvenu
Attachment #73215 -
Flags: superreview+
Comment 31•23 years ago
|
||
Comment on attachment 73215 [details] [diff] [review]
same patch, but remove MarkThreadAsRead()
r=ssu
Attachment #73215 -
Flags: review+
Comment 32•23 years ago
|
||
Comment on attachment 73215 [details] [diff] [review]
same patch, but remove MarkThreadAsRead()
r=hwaara
Comment 33•23 years ago
|
||
Comment on attachment 73215 [details] [diff] [review]
same patch, but remove MarkThreadAsRead()
a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #73215 -
Flags: approval+
| Assignee | ||
Comment 34•23 years ago
|
||
fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 35•23 years ago
|
||
OK using mar22 commercial trunk build: win98, linux rh6.2, mac OS 10.1
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•