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 67870 - Keystrokes used to select menu items sent to top components
Summary: Keystrokes used to select menu items sent to top components
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: RANDOM, REGRESSION
: 67856 69186 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-31 20:11 UTC by Jesse Glick
Modified: 2008-12-22 20:54 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Found a reproducible test case with dialog. Packed NbProject, unjar, build, run. (13.40 KB, application/x-compressed)
2006-02-28 09:52 UTC, Petr Nejedly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-10-31 20:11:50 UTC
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.
Comment 1 Milos Kleint 2005-11-01 07:05:49 UTC
*** Issue 67856 has been marked as a duplicate of this issue. ***
Comment 2 Marian Mirilovic 2005-11-01 08:32:08 UTC
I think it's Mustang b58 regression. It works fine with JDK 1.5.0_06 & 6.0(b54)
Comment 3 Martin Krauskopf 2005-11-01 08:40:57 UTC
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).
Comment 4 Martin Krauskopf 2005-11-06 21:18:36 UTC
still the same with b59 -> IDE is more or less unusable for "shortcuters" - one
has to stay with b57, quite annoying
Comment 5 Martin Krauskopf 2005-11-06 21:27:29 UTC
BTW easily reproduced with simple non-NB app. So presuambly JDK bug. Just find
it or fill it.
Comment 6 Jesse Glick 2005-11-06 22:48:52 UTC
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.
Comment 7 Jan Chalupa 2005-11-07 08:10:08 UTC
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?
Comment 8 Petr Nejedly 2005-11-07 12:04:03 UTC
A JDK issue, tracked as #6346690
Comment 9 Jesse Glick 2005-11-08 00:57:11 UTC
Please use the jdk_bug_* syntax in status whiteboard for such cases.
Comment 10 Martin Krauskopf 2005-11-29 08:42:05 UTC
*** Issue 69186 has been marked as a duplicate of this issue. ***
Comment 11 Marian Mirilovic 2006-01-17 16:04:59 UTC
verified JDK bug - fixed in JDK 6.0 (59a)
Comment 12 Martin Krauskopf 2006-02-15 12:34:13 UTC
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.
Comment 13 Martin Krauskopf 2006-02-15 12:35:51 UTC
And it is RANDOM. 1/5 cases the "c" is written into "Commit Message" dialog in
poped-up dialog.
Comment 14 Martin Krauskopf 2006-02-15 17:16:52 UTC
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.
Comment 15 Jesse Glick 2006-02-15 22:32:25 UTC
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?
Comment 16 Jesse Glick 2006-02-16 20:09:54 UTC
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.
Comment 17 Petr Nejedly 2006-02-20 16:09:56 UTC
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).
Comment 18 Petr Nejedly 2006-02-28 09:52:02 UTC
Created attachment 29043 [details]
Found a reproducible test case with dialog. Packed NbProject, unjar, build, run.
Comment 19 Petr Nejedly 2006-02-28 09:59:53 UTC
I have reopened the JDK issue with updated test case. Closing this one.
Comment 20 Petr Nejedly 2006-02-28 13:48:40 UTC
Reentered as JDK issue #6391688