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 16150 - Accessibility: Mnemonics do not work in popup menu
Summary: Accessibility: Mnemonics do not work in popup menu
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: A11Y, UI
: 16793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-03 00:47 UTC by Sophie Deng
Modified: 2008-12-22 20:46 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sophie Deng 2001-10-03 00:47:17 UTC
My actions subclass NodeAction, and set mnemonics via the implementation of
getMenuPresenter() and getPopupPresenter(). The mnemonics work fine for
pull-down menu, but not for popup menu. That is the same code works for
getMenuPresenter() but not for getPopupPresenter(). This problem only exists in
the top level popup menu, cascade menu of the top level menu work. I also
noticed that there is no mnemonics implemented for popup menu too. Is this a
known bug?
Comment 1 Sophie Deng 2001-10-03 18:47:07 UTC
Got some information from HIE on the policy of using mnemonics on
popup menus. Dirk.Ruiz wrote:
The policy is not to use mnemonics on popup menus.  The reason is that 
there's no way to predict which items will show up on any given
context menu.  So, the chance of having a repeated mnemonic is high. 
This shouldn't be a problem -- the user *should* be able to repeatedly
press the mnenomic to get to the menu items that have the same
mnemonic.  For instance, if the context menu had the items _Reboot and
_Run, then the user should be able to press Alt-R twice to get to
_Run.  The problem is that Java has a cute little bug: pressing the 
mnemonic the second time triggers the first menu item that has the
mnemonic, rather than skipping to the second menu item that has the
mnemonic.  In this case, pressing Alt-R the second time will trigger
_Reboot, rather than skipping to _Run.

Cute, huh?  Since we can't solve this problem, we just don't show 
mnemonics on context menus, and let the user arrow up and down to get
to other menu items from the keyboard.

Since we don't need to implement menomics for popup menus, this bug is
not critical now. However when the jdk bug is fixed, this bug sould be
fixed as well.

Comment 2 Jan Zajicek 2001-10-04 09:26:17 UTC
Just CCing ui group.
Comment 3 Jiri Mzourek 2001-10-31 16:15:18 UTC
*** Issue 16793 has been marked as a duplicate of this issue. ***
Comment 4 _ ttran 2001-11-02 06:50:53 UTC
see Dirk' comment => we won't work around all Swing's problems
Comment 5 Quality Engineering 2003-07-01 15:59:15 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 6 Quality Engineering 2003-07-01 16:33:07 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 7 Jaromir Uhrik 2006-09-05 09:22:27 UTC
*** Issue 83952 has been marked as a duplicate of this issue. ***
Comment 8 Martin Krauskopf 2006-09-05 13:38:39 UTC
The mentioned bug seems to be fixed in JDKs [567].0. And since trunk requires
JDK 5.0 this can be probably fixed now.
Comment 9 Jesse Glick 2006-09-06 14:43:00 UTC
Indeed, it is not a big problem if there is a mnemonic overlap in the context
menu. But we can check that with the standard set of modules this does not
happen. Not really any different than potential mnemonic conflicts in the main menu.

openide/actions is not exactly the right category, nor is the bug description
correct. Mnemonics *do* work in the popup menu, if you specify them. The problem
is that most modules do not specify them. This should be corrected.
Comment 10 Jiri Rechtacek 2006-09-14 08:52:56 UTC
Reporter: please, specify which menus (which modules) doesn't correctly use
mnemonics in their menus. Thanks
Comment 11 Martin Krauskopf 2006-09-14 09:17:20 UTC
Right there is nothing to fix here. I've reopen and added a comment to issue 83952.