Closed Bug 476226 Opened 15 years ago Closed 15 years ago

Beep when closing prefwindow with cmd+w in apps without own close key defined

Categories

(Toolkit :: Preferences, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: stefanh, Assigned: stefanh)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

(Same as bug 473444, forgot about the close key)

STR:

1) Launch Calendar or Seamonkey
2) Open preferences
3) Hit Cmd+W

Expected result: Prefwindow closes silently
Actual results: Prefwindow closes with a beep

This affects apps that doesn't have a second close key defined (either in a menu or in preferences.xul). Actually, it shouldn't be necessary to have a <key/> in preferences.xul (like thunderbird have), since we have a keypress handler for this in preferences.xml...
Last keypress handler in preferences.xml...
Attachment #359846 - Flags: review?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.9.2a1
Attachment #359846 - Flags: review? → review?(gavin.sharp)
Attachment #359846 - Flags: review?(gavin.sharp) → review+
http://hg.mozilla.org/mozilla-central/rev/6076fd1df050
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 476271
Comment on attachment 359846 [details] [diff] [review]
use stopPropagation and preventDefault on the handler

This fixes a quite annoying mac-specific problem that hits consumers of the preference widget. Should be safe.
Attachment #359846 - Flags: approval1.9.1?
Comment on attachment 359846 [details] [diff] [review]
use stopPropagation and preventDefault on the handler

a191=beltzner
Attachment #359846 - Flags: approval1.9.1? → approval1.9.1+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: