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.
Not sure if this is a regression in Mustang, core KB handler, or editor, but I just noticed it today. Dev build 051031, Mustang b58, Linux (FC4). Whenever I use mnemonics to select menu items, the last keystroke is sent to the editor too. For example, with one file open from a project, "Alt-F C" leaves a 'c' at caret position in that file (meaning that I have to Discard it). Same for Alt-F T, Alt-C D, Alt-C C, etc. (In the case of CVS actions it is worse because the file is saved with the bogus character added before running the action!) Quite annoying. Does not affect mouse usage.
*** Issue 67856 has been marked as a duplicate of this issue. ***
I think it's Mustang b58 regression. It works fine with JDK 1.5.0_06 & 6.0(b54)
Yes. As I wrote in the original issue, it works also with b57. Also is not depending on any L&F (at least under Linux).
still the same with b59 -> IDE is more or less unusable for "shortcuters" - one has to stay with b57, quite annoying
BTW easily reproduced with simple non-NB app. So presuambly JDK bug. Just find it or fill it.
Still in b59. Not editor-specific; e.g. Alt-T O when Projects window focussed opens Options dialog but also pops up Quick Search box on Projects and jumps to any project with a name beginning with 'O'. Please investigate - we really do not want Mustang beta to ship with this bug! It makes KB usage of the IDE quite uncomfortable.
Agreed. This needs to be investigated and filed against JDK (if appropriate) asap. Martin, can you attach an example of the simple non-NB app you used to reproduce the problem?
A JDK issue, tracked as #6346690
Please use the jdk_bug_* syntax in status whiteboard for such cases.
*** Issue 69186 has been marked as a duplicate of this issue. ***
verified JDK bug - fixed in JDK 6.0 (59a)
6346690 is fixed - i.e. some changes were backported so it behaves like older mustang builds. Since the build following builds until b71 was unsuable due to this bug so one has to use Mustang b59a. But according to 6363026 the mnemonic problem should be fixed at all in b71. Behavior is better but I'm still able to reproduce *with NetBeans* when "Alt-c" (_C_VS Menu) -> "c" (_C_ommit ...). I tried to reproduce with a simple non-netbeans application simulating described behaviour - but unsuccessfully - so reopening the bug here.
And it is RANDOM. 1/5 cases the "c" is written into "Commit Message" dialog in poped-up dialog.
Actually it happens relatively often and on more places. Also sometime keystroke is sent to the editor (TC) as well. So very likely regression in JDK was not fixed well. But simple testcase is passing. I think this is high priority since Mustang is closing to final release.
I think I have seen the bug you describe re. 'c' being added to message in Commit dialog, but just once (in b71). Might be a bug in NB too - maybe we are not handling the action completely in one EQ event?
On b71 I have also seen "Alt-A S" insert an 's' in the name of the member about to be deleted. So I agree that whatever the fix in b71 was, it was not enough. Please escalate this fast to the Swing team because there is not much time left.
I haven't reproduced the problem so far on my machine (Linux, fvwm2, 1.6.0-b71). But I have spotted strange focus problem. If I keep doing Alt+c o Ecs (invoke commit dialog, dismiss it), sometimes the focus is properly returned to the main window and sometimes not (the main window is not selected as active at all).
Created attachment 29043 [details] Found a reproducible test case with dialog. Packed NbProject, unjar, build, run.
I have reopened the JDK issue with updated test case. Closing this one.
Reentered as JDK issue #6391688