Closed Bug 67803 Opened 24 years ago Closed 23 years ago

No focus in Download Dialog box

Categories

(Core Graveyard :: File Handling, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: york2600, Assigned: law)

References

Details

(Keywords: access)

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010205
BuildID:    2001020520

When you download a file the download window pops up, but unlike IE (I'm sorry,
but the feature is nice) you cant just hit the up arrow and have that select
open with application instead of save to disk.  You have to first tab onto that
field.

Reproducible: Always
Steps to Reproduce:
1.Download a file
2.Hit the up arrow
3.

Actual Results:  Nada

Expected Results:  It would be nice it it would just select the other button
-> UI:design feedback.
Reporter, could you tell us if anything is focused at the moment? Would 
focusing the radiobutton steal the focus from something else?
Thanks for reporting bugs!
Assignee: asa → hangas
Component: Browser-General → User Interface: Design Feedback
QA Contact: doronr → mpt
Fabian, I can confirm using 2001020604 on Win98, Modern theme.  I can't tell
what has the focus.  Pressing tab once will bring the focus to "Open using". 
Pressing Shift-Tab at that point takes the focus indicator away again.  Whatever
this initial object is, it's not in the tab order of the dialog, because
pressing tab (not Shift-Tab) repeatedly moves the focus indicator through all
the visible widgets in the dialog.
Nothin is selected when you start the download.  It would be stealing the
selection from anything
Changing Summary to reflect the fact that there is no focus on the dialog box.
Severity: enhancement → minor
Status: UNCONFIRMED → NEW
Component: User Interface: Design Feedback → XP Apps
Ever confirmed: true
OS: Windows NT → All
Hardware: PC → All
Summary: When you download a file it you should be able to hit the up and down arrows to immediatly select if you want to save to disk or open with an app → No focus in Download Dialog box
Sending to component owner
Assignee: hangas → pchen
QA Contact: mpt → sairuh
->bill?
Assignee: pchen → law
Keywords: access
Setting target milestone.
Target Milestone: --- → mozilla0.9.7
Whiteboard: looking for r=, sr=
I tried this:
   this.dialogElement( "mode" ).focus();
instead of:
   
this.mDialog.document.commandDispatcher.advanceFocusIntoSubtree(this.mDialog.document.firstChild);

The only difference (aside from the length of that line of code :-) is that the
latter focuses the first child, rather than a specific child node.  But an
explicit focus() call was added to the onload handler in the progress dialog so
I'm not sure which is preferred.  I like the short version.

Also, bug 98797 requests that we leave the "Close this dialog" checkbox enabled
on the download progress dialog (so that users can change the setting that will
be in effect for the *next* download).  I attempted to do that (by removing the
line of code that disabled that checkbox) but found that that messed up your
code that puts the focus on the Close button when the download completes.

The problem is that the download can complete before the dialog finishes
loading.  In that case, the .focus() call added in the onload handler fires
*after* the .focus() for the Close button.

I fixed that by making the onload .focus() call only happen when the download
isn't yet completed.

I'll attach a patch file with my changes shortly.

      
Attachment #52601 - Flags: review+
spam: over to File Handling.
Component: XP Apps → File Handling
r=aaronl

sr?
fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: looking for r=, sr=
focus is working in the helper app dialog. but i noticed that i cannot use the
keyboard to change/navigate to its radio buttons --files bug 108981.

vrfy'ing this bug as fixed using commercial bits:

linux [rh6.2] - 2001.11.06.12
winNT - 2001.11.06.12
mac os 10.1 - 2001.11.06.08
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: