Closed Bug 215846 Opened 21 years ago Closed 21 years ago

No way to tab to attachment pane using keyboard

Categories

(MailNews Core :: Composition, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: yuliy.pisetsky, Assigned: yuliy.pisetsky)

Details

(Keywords: access)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030805
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030805

When composing a message, after attaching a file, you should be able to tab over
to the attachment pane to delete it using keyboard. However even with a file
attached, still cannot tab over

Reproducible: Always

Steps to Reproduce:
1. open mailnews, click compose
2. attach any file
3. try to tab into attachment pane (should be between subject and body according
to the .js file)

Actual Results:  
Goes right past it (from subject to body and body to subject)

Expected Results:  
tabbed from subject to attachments and shift-tabbed from body to attachments

Attaching a patch that might fix this
what do I do with this now?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #129604 - Flags: review?(sspitzer)
Attachment #129604 - Flags: review?(sspitzer) → review?(mscott)
Comment on attachment 129604 [details] [diff] [review]
fixes typo in AttachmentElementHasItems() in MsgComposeCommands.js

Scott, David can you please review?
Attachment #129604 - Flags: superreview?(bienvenu)
Attachment #129604 - Flags: review?(mscott)
Attachment #129604 - Flags: review?(mscott)
Attachment #129604 - Flags: superreview?(bienvenu) → superreview+
Scott or I can check this in for you...
Thanks David. That would be nice. And just to rule out any misunderstandings. I
only seeked review, npisetsky@cox.net wrote the patch and should be credited.

Another question: 
Since this is a pretty low-risk patch, should I ask for approval for 1.4.2, too?
you can seek approval - I'm not sure if it would be considered important enough
for 1.4.2, even though it is low risk.
Comment on attachment 129604 [details] [diff] [review]
fixes typo in AttachmentElementHasItems() in MsgComposeCommands.js

no this should just got into the 1.6 trunk and not a point release for previous
releases. The issue isn't severe enough to warrent that.
Attachment #129604 - Flags: review?(mscott) → review+
I won't seek approval for the 1.4-BRANCH. So if you David or Scott could check
this into the trunk, that would be great.
sure, I'll check it in.
this patch didn't work for me, unfortunately. I'll try a cleaner rebuild.
Okay, I still think that fix is valid, but I did some poking as to why it didn't
fix the problem at hand, and I found that in 2003102804, I couldn't get it to go
to the attachment pane, _even if I disabled the check for attachments in the
pane_. It still went right on past it. 
(sry for spam, just realized comment was unclear) the check I referred to in the
previous comment is in the SwitchElementFocus function in the same .js file
I agree - it seems neccesary but not sufficient. I guess I'll check it in and we
can figure out what else is broken.
Okay. I looked around a bit in messengercompose.xul, and apparently trying to
tab from subject calls subjectKeyPress instead of SwitchElementFocus. Another
thing: apparently, SwitchElementFocus is broken. It is only used when using
ctrl+tab or F6 (see <a
href="http://lxr.mozilla.org/mozilla/source/mailnews/compose/resources/content/messengercompose.xul#175">http://lxr.mozilla.org/mozilla/source/mailnews/compose/resources/content/messengercompose.xul#175</a>
). Using F6 from the message panejumps to the identity, F6/ctrl+tab after that
jumps back to the content pane. shift+F6 from the subject even leaves it there.
I'll try looking into what's going on there
Status: NEW → ASSIGNED
Over to Yuliy.
Assignee: sspitzer → npisetsky
Status: ASSIGNED → NEW
i've checked in the fix for the typo with a larger checkin for cancelling fcc
operations.
I renamed addressingWidgetTree because it's not a tree, which makes the patch
bigger than it seems, the relevant parts are lines 2310, 2556, 2717 and 2745.
Status: NEW → ASSIGNED
Attachment #136476 - Flags: review?(mscott)
Attachment #136476 - Flags: superreview?
Attachment #136476 - Flags: review?(mscott)
Attachment #136476 - Flags: review+
Comment on attachment 136476 [details] [diff] [review]
This should fix the remaining issues

we need to do the same fix in tbird, I believe.
Attachment #136476 - Flags: superreview? → superreview+
Fix checked in to Seamonkey.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Keywords: access
one last thing. ctrl+tab or F6 from subject goes to attachments if there are
attachments, as it should be, but tab does not. Why is there a separate function
to handle a tab in the subject line?
Status: RESOLVED → VERIFIED
To follow up on Yuriy's comment 19: Shift-tab from the body doesn't go to the 
Attachments pane either; shift-Ctrl-Tab or shift-F6 do.  Is that intentional, or 
should there be a new bug opened?

See also bug 236219.

Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: