This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31003 - First menu item in menu a submenu -> no mnemonics
Summary: First menu item in menu a submenu -> no mnemonics
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: A11Y, JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2003-02-12 16:55 UTC by Jesse Glick
Modified: 2008-12-22 20:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Simple swing app with this problem (4.00 KB, text/plain)
2003-02-26 08:37 UTC, Petr Nejedly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-02-12 16:55:23 UTC
dev feb 11, JDK 1.4.1_01, MDI, Linux 2.4.18, Gnome
+ Sawfish (sloppy focus).

Mnemonics never work in a menu whose first item is
a submenu. Does not matter whether the submenu is
a sfs:Menu/A/B/ subfolder, or a generated submenu
such as Window -> Attach MDI Frame. When the menu
is posted (e.g. Alt-W), the submenu is selected
(not expanded), and no mnemonics for the rest of
the menu work.

Generally this seems to be true whenever a submenu
is selected; if you use arrow keys to move to a
simple menu item, then all mnemonics begin working.

Fully reproducible for me; can add/delete/move
down initial submenus at runtime and see the effects.

Hinders KB access, esp. to the default Window menu.
Comment 1 Marian Mirilovic 2003-02-19 15:52:06 UTC
> Mnemonics never work in a menu whose first item is a submenu.

It isn't true , if you try menu Build (Start Session), or Versioning
(Mount Versioning) it works fine. 

There is something broken only in Window menu, because if you invoke
menu Window and than press 't', actually focused window is attached to
Top, it means that pressed key 't' is posted to submenu "Attach MDi
Frame". 
Something is broken in Window | Frame resides too, it doesn't expand
menu - nothing happens.
Comment 2 Marian Mirilovic 2003-02-19 15:55:15 UTC
Ups, it seems like it works described way (doesn't work0 only on
[s1s_se](20030218), it's not reproducible on [nb_dev](20030219)
Comment 3 Petr Nejedly 2003-02-26 08:26:30 UTC
The problem is in Swing, I'll attach simple demo application.
Comment 4 Petr Nejedly 2003-02-26 08:37:53 UTC
Created attachment 9148 [details]
Simple swing app with this problem
Comment 5 Petr Nejedly 2003-02-26 08:40:30 UTC
Generally, the mnemonics don't work once the menu selection is
on item which is submenu. Swing probably tries to route the mnemonics
to the (yet unexpanded) submenu.
In the attached app, you can test it by
Alt+e (first menu)
Down, Down (select the submenu, but don't open it)
A (the mnemonic don't work any more, although the item
with submenu is not first).
Comment 6 Jesse Glick 2003-02-26 17:53:14 UTC
OK, well someone should file a BugTraq bug - assign to me if you want
me to do it. Thanks for the demo form Petr, I can reproduce with that
easily.
Comment 7 _ tboudreau 2003-02-27 16:27:11 UTC
Passing to Jesse per his request.  Petr, if you want it, take it
back.
Comment 8 Jesse Glick 2003-03-21 18:52:13 UTC
Seems to have been fixed in the JDK already; at least I can no longer
reproduce in Mantis b18. The submenu is still selected & unexpanded
when you post the window, but mnemonics for other menu items work fine.
Comment 9 Marian Mirilovic 2003-07-24 14:10:13 UTC
closing.