Closed Bug 37992 Opened 25 years ago Closed 24 years ago

WIN32: Shift+Alt+Esc when submenu item highlighted doesn't destroy submenu

Categories

(Core :: XUL, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: timeless, Assigned: hyatt)

References

Details

(Keywords: helpwanted)

Pressing Shift+Alt+Esc to switch tasks when a submenu is open and an item highlighted doesn't destory the submenu nor its parent. Using Alt+Esc results in the menu being destroyed. To duplicate: Select the Debug menu, open the Verification submenu, then highlight Microsoft. Then press Shift+Alt+Esc to switch to the previous-topmost task. The Debug menu and the Verification submenu remain visible and on top. Platform: Windows2000 Build ID: 2000050215 This bug made with 95% recycled thoughts.
This is related to the Alt-Esc bug which was fixed. [The description was also copied from there; altered slightly to fit]
Depends on: 20998
not high priority.
Assignee: hyatt → pinkerton
i see it as destroying the submenu, but it doesn't switch tasks. hyatt usually has these kind of bugs, why is it on my plate?
Assignee: pinkerton → hyatt
Target Milestone: --- → M20
QA Contact: sairuh → jrgm
Mass-moving all M20-M30 XPToolkit bugs to Future
Target Milestone: M20 → Future
I think what happens is this... When you press Alt+Esc the Alt cancels the open sub-menus. When you press Shift+Alt+Esc (hold down Shift then Alt then press Esc), we aren't recognizing this. But we have to treat this differently because we can conceivably have Shift+Alt shortcuts, so we can't dismiss the menu chain as soon as Alt is pressed. We have to wait for Esc or lose focus or something.
Also seeing this when pressing Shift+Alt+Tab.
The problem is here: http://lxr.mozilla.org/seamonkey/source/layout/xul/base/src/nsMenuListener.cpp#1 14 The Alt keypress dismisses the menu only if there is no other modifier key already down. From the comment, this is for AltGR support. Compare this to normal Windows behavior, though, where I can have none, any, or all modifier keys pressed and as soon as I press Alt down, the open menu is dismissed. How do we handle both proper Windows behavior as well as AltGR support?
Keywords: helpwanted
My patch for bug 45108 fixes this as well.
Depends on: 45108
fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
v
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.