Closed Bug 749563 Opened 10 years ago Closed 10 years ago

Consumed Alt key (i.e., preventDefault() is called) causes to activate menubar

Categories

(Core :: XUL, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: masayuki, Assigned: masayuki)

References

()

Details

Attachments

(1 file)

1. Open the URL.
2. Press Alt key.

Then, the Alt keydown event is consumed by the blank page, but menu is activated. It shouldn't be activated by consumed event.

Alt+F works fine, it checks the defaultPrevented value.
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Attached patch PatchSplinter Review
Attachment #622238 - Flags: review?(enndeakin)
Comment on attachment 622238 [details] [diff] [review]
Patch

>+  result: function(testname) {
>+    ok(!document.getElementById("filemenu").openedWithKey, testname);
>+  },

Could you also add a line to check that the menu isn't open, so that an test failure will be caught here rather than at a later test. Same with the other test.
Attachment #622238 - Flags: review?(enndeakin) → review+
https://hg.mozilla.org/mozilla-central/rev/e52bf88f2f54
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
Component: XP Toolkit/Widgets: Menus → XUL
You need to log in before you can comment on or make changes to this bug.