Closed Bug 61011 Opened 24 years ago Closed 21 years ago

[access]can't close some JS windows with keybinding (cmd-W / ctrl-W)

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
mozilla1.1alpha

People

(Reporter: Brade, Assigned: bugs)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: WFM?)

Attachments

(2 files)

(This may be a duplicate but I haven't been able to find another bug on this
particular issue yet.  Also, I'm not sure how to reproduce this.  :-/)

The following is reported by Jason Alcock on 11/15/2000 at
http://www.macintouch.com/netscape6.html:

Doesn't accept cmd-W to close some javascript-opened windows.
Keywords: nsmac2
->saari, in hopes that he will recognize a reproducible defect in keybinding
here.  cc danm for possible window closing problem.
Assignee: trudelle → saari
lorca -- did you file a bug on this point? (I thought you had).
Too vague to be useful. cmd-W is known to work in general. I'd close it WFM.
I guess danm missed the double-secret memo that said we should break this 
keybinding for popup advertisements in order to increase viewing time. 
(e.g., windows without a full complement of toolbar, location, etc.). 

[Note: this applies to windows as well, and under all cases on linux].
Saari had bug 56343, which seems similar, marked as mozilla 1.0 TM.  I'll attach
a testcase I wrote before I found either of these bugs...  (Based on 4.x
behavior, hotkeys=no should not affect whether Meta-W works.)
Keywords: mozilla1.0
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
*** Bug 56343 has been marked as a duplicate of this bug. ***
I think this topic seems familiar, I've seen it before, but don't know if I ever 
wrote it up-although I am fairly sure there was a similar issue that I did write 
up.
On another note, the info from the "duplicate" bug:
From Steve Dagley (the original submission for this bug):
http://www.apple.com/trailers/disney/monsters_inc/
Summary:
JavaScript created windows don't appear to have keyboard event handlers hooked up
His blurb:
It appears that for JavaScript created windows the keyboard event handlers, such 
as for close window, aren't hooked up even tho the menu item is present and lists 
a command shortcut.  From the example URL on the Apple QuickTime movie trailer 
site select one of the frame sizes for the Monster Inc. trailer.  Observe that it 
brings up a new window.  Observe that this window isn't closed if you use the 
Command-W keyboard shortcut for the Close menu item.  Observe that directly 
selecting the Close menu item or clicking in the go away box for the window does 
close the window.
Summary: can't close some JS windows with keybinding (cmd-W / ctrl-W) → [access]can't close some JS windows with keybinding (cmd-W / ctrl-W)
Target Milestone: mozilla0.9 → mozilla1.0
I've also noticed that it happens on other windows, not just javascript opened 
windows.  If you just choosing File->New Navigator Window, the new window will 
also not close with cmd-W.  I've reproduced this on HPUX build #20010214 and 
Linux build #20010131.
->aaronl
Assignee: saari → aaronl
Status: ASSIGNED → NEW
Keywords: access
Blocks: focusnav
With jag's fix to focus content if the locationbar is not visible, then this 
works for mac and win32, and for almost all cases on Linux [for the test cases
listed above].

The condition that it fails on Linux is that if the urlbar is showing, it gets 
focus, and the urlbar has a binding for Ctrl-W, which is to wipe the current 
line. So that eats the event, and the window close is not triggered. I don't 
think that's really a bug (awkward, yes, bug, not really). But I'll leave to 
Mr. Accessibility to make the final call of WFM.
Whiteboard: WFM?
Similar to bug 75191
Assignee: aaronl → ben
seeing this bug in mac build id: 2001092608
Is this bug really mine? 
See also bug 108244, "Nothing is focused when opening a new window[CTRL+N] 
without a URL bar".
ah, yes, I can fix this. 
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → mozilla1.1
WFM on jrgm's testcase.
I thikn this is all wrapped up.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: