Closed Bug 298446 Opened 19 years ago Closed 18 years ago

Cmd-period does not stop (cancel) download, but Esc does

Categories

(Camino Graveyard :: Accessibility, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: alqahira, Assigned: nick.kreeger)

References

Details

(Keywords: access, fixed1.8.1, polish)

Attachments

(1 file, 2 obsolete files)

When the download manager has focus, cmd-period does not cancel the active
download.  Esc does, however.  Camino 0.9a1

There are similar cmd-period/esc parity and missing cmd-period functionality
bugs, so dupe if there should be one master bug....
Wevah: Do you want to look at this?
Josh did the DL manager, so this should probably go to him. All it really needs,
though, is an overridden -performKeyEquivalent: on a window subclass.
Errh, I'm dumb. It's handled in the menu! We should just have the DL manager
respond to the right selector, and change the menu item's title to "Stop
Download" when the DL window is the frontmost window.
Is this something that can be done along with the current DL Mgr
pause/resume/other cool stuff work?
(In reply to comment #4)
> Is this something that can be done along with the current DL Mgr
> pause/resume/other cool stuff work?

Should we create a 1.0 Download Manager meta bug to track the various
changes/improvements we want to make?
(In reply to comment #5)
> Should we create a 1.0 Download Manager meta bug to track the various
> changes/improvements we want to make?

There are 19 bugs in the Downloading component and 8 with "download" in their
summaries in other components (of which I think this is the only one that really
applies to the DL Manager per se); I'd just target them appropriately, unless a
meta would help you/Jasper drive the project more successfully.  IMO, meta bugs
seem more useful for things that it's hard to come up with a good query for
(scattered components, filtering Java bugs out of other plugin bugs, etc.)
(In reply to comment #3)
> Errh, I'm dumb. It's handled in the menu! We should just have the DL manager
> respond to the right selector, and change the menu item's title to "Stop
> Download" when the DL window is the frontmost window.

How difficult is that?
Target Milestone: --- → Camino1.1
Keywords: access
QA Contact: accessibility
Summary: Cmd-period does not stop (cancel) download → Cmd-period does not stop (cancel) download, but Esc does
Whiteboard: [good first bug]
taking
Assignee: mikepinkerton → nick.kreeger
Attached patch Proposed Patch (obsolete) — Splinter Review
Since command modified keydown events don't register in ProgressDlgController, simply override the performKeyEquivalent method in ProgressView. If the event is keydown, the command key is a modifier, and if the character for the event is '.' tell our controller (ProgressViewController) to cancel.
Attached patch Patch1 updated... (obsolete) — Splinter Review
This update removes the extra space on the second line of the if statement.
Attachment #225523 - Attachment is obsolete: true
Attached patch Updated PatchSplinter Review
Updated patch, the previous patch would only work for the first progres view in the stack. This patch works like the double-click open feature, it posts a notification to ProgressDlgController to cancel, and PDC fires |cancel:|. |cancel:| cancels all selected downloads that are running.
Attachment #225524 - Attachment is obsolete: true
Attachment #225588 - Flags: review+
Attachment #225588 - Flags: superreview?(mikepinkerton)
Comment on attachment 225588 [details] [diff] [review]
Updated Patch

sr=pink
Attachment #225588 - Flags: superreview?(mikepinkerton) → superreview+
Whiteboard: [good first bug] → [good first bug][needs checkin]
Fixed trunk and branch
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: [good first bug][needs checkin] → [good first bug]
Whiteboard: [good first bug]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: