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 139453 - Mnemonic for menu-items in main menu does not work reliably
Summary: Mnemonic for menu-items in main menu does not work reliably
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Simonek
URL: http://bugs.sun.com/view_bug.do?bug_i...
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2008-07-09 18:36 UTC by Lukas Hasik
Modified: 2008-12-22 13:34 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
small Swing app demonstrating the problem (2.27 KB, text/plain)
2008-09-03 16:12 UTC, David Simonek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-07-09 18:36:59 UTC
According to the Permanent UI specification for NB IDE [1] there are following problems with 
*Go to Rails Action or View* menu item(s) in main menu of the NB IDE

1, the mnemonic should be "R"

Please, follow the UI Review process [2] to get the changes approved or fix it

[1] http://wiki.netbeans.org/MainMenu
[2] http://wiki.netbeans.org/UIReviewProcess
Comment 1 Erno Mononen 2008-07-23 10:24:55 UTC
Will fix the mnemonic.
Comment 2 Erno Mononen 2008-08-13 13:47:53 UTC
Actually the mnemonic is correctly set to 'R', but pressing 'R' opens the Run menu. I don't know what's causing this, 
maybe an issue somewhere in the core platform or JDK. Not sure what would be the right component for this, reassigning 
to 'ide' for further evaluation. IMO the priority could be lowered. 

Product Version: NetBeans IDE Dev (Build 080811)
Java: 1.5.0_15; Java HotSpot(TM) 64-Bit Server VM 1.5.0_15-b04
System: Linux version 2.6.24-19-generic running on amd64; UTF-8; en_US (nb)
Comment 3 Martin Krauskopf 2008-08-13 16:46:36 UTC
The same happens to me when I press <Alt-t> followed by 'r'. I would expect '_T_ools -> _R_uby Gems ' to be triggered.
But after pressing 'r' the _R_un menu steals the focus. So mnemonic, correctly set on _R_uby Gems is unusable.
Comment 4 Erno Mononen 2008-08-27 11:52:33 UTC
I already once reassigned this to 'ide' from 'ruby/rails', please see the comments here before reassigning further.
Comment 5 Peter Pis 2008-09-01 12:53:18 UTC
So who is responsible for this? Who is going to fix it?
Comment 6 Lukas Hasik 2008-09-03 13:51:25 UTC
works for me. 
Be in IDE, press ALT(and hold it), then press N and then R. If you are have a rb file opened then you can cycle between
items
1, Go to Rail Viewe or Action 
2, Previous Document

-> closing as fixed.

The Tools > Ruby Gems works for me too. The trick (or feature) is that you have to hold the ALT whole the time.
Comment 7 Martin Krauskopf 2008-09-03 13:59:39 UTC
Does not for me. E.g. also Alt-D, e (_D_ebug | Apply Cod_e_ Changes).

> The trick (or feature) is that you have to hold the ALT whole the time.

That's not true.
Comment 8 Lukas Hasik 2008-09-03 14:08:16 UTC
works on windows XP (maybe linux specific?, or JDK?)
Comment 9 Lukas Hasik 2008-09-03 14:27:38 UTC
reassigning to window system. I'm not able to reproduce. Contact Martin for more details if needed.

The symptoms are described in description 3, 4, 8
Comment 10 David Simonek 2008-09-03 16:07:44 UTC
I managed to reproduce this issue and prove that it's in JDK, both on JDK 1.6.0_10 and JDK 1.7.
I'm attaching source code which demonstrates it - run it on Linux and press 'Alt+T' and then 'A'. "About" or "About 2"
should be selected, but "Refactor" menu is chosen instead. I'll file JDK issue.

lhasik, please try to run attached test code and reproduce error as well, thanks.
Comment 11 David Simonek 2008-09-03 16:12:33 UTC
Created attachment 68964 [details]
small Swing app demonstrating the problem
Comment 12 David Simonek 2008-09-03 16:33:44 UTC
I filed JDK bug http://bugs.sun.com/view_bug.do?bug_id=6744230
Comment 13 David Simonek 2008-09-03 16:35:44 UTC
Note to HIE: Issue has easy workaround - get rid of conflicting mnemonics and all will work OK - please consider to
change mnemonics in such way, thanks.
Comment 14 Lukas Hasik 2008-09-03 16:55:34 UTC
I can reproduce with the MenuTest on windows XP
Comment 15 Lukas Hasik 2008-10-06 12:43:34 UTC
v