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 211282 - Menu shortcuts leave characters in editor
Summary: Menu shortcuts leave characters in editor
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2012-04-16 17:45 UTC by nowhereman
Modified: 2012-05-24 21:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message.log and uigestures (19.45 KB, application/x-zip-compressed)
2012-04-24 15:24 UTC, nowhereman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nowhereman 2012-04-16 17:45:21 UTC

    
Comment 1 nowhereman 2012-04-16 17:48:21 UTC
When using the menu shortcuts, such as Alt-S F (to format), Alt-S O (to fix imports), or Alt-E T (to cut selected text), sometimes the second character (f, o, t) is inserted in the source code after the menu action is done.  I noticed this happening with 7.1.
Comment 2 Jiri Prox 2012-04-17 15:32:34 UTC
This looks like JDK problem, I'm able to reproduce it with the single JFrame with JEditorPane and JMenu, but I'm not able to find this in the jdk bug database
Comment 3 Miloslav Metelka 2012-04-24 14:24:26 UTC
This is a longterm JDK problem which sometimes reappears with certain JDK versions on certain platforms. It used to be more frequent on old JDKs like 1.2 or 1.3 but I guess it may appear even with current JDKs. Currently there's still an open issue for Linux platform http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6493715 and many issues like e.g. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6391688 for various platforms including windows that appear as closed but I guess they may re-appear e.g. specifically on Win7.
You might want to try a different JDK version/build it might possibly help.
Comment 4 Antonin Nebuzelsky 2012-04-24 15:01:53 UTC
Reporter, please attach your messages.log to this bug.
http://wiki.netbeans.org/FaqLogMessagesFile
Comment 5 nowhereman 2012-04-24 15:24:28 UTC
Created attachment 118696 [details]
message.log and uigestures

Attached ZIP file containing messages.log and uigestures from the following session:
Open Netbeans 7.1.1
Close all open files
Open another file
Press Alt-S, f
Source was reformatted
'f' appeared at the cursor
Close Netbeans, do not save changes
Comment 6 Antonin Nebuzelsky 2012-04-24 16:01:03 UTC
Reproducible consistently?

Could please try with 6u31 and 7u3? Thanks.
Comment 7 nowhereman 2012-04-24 16:42:30 UTC
It is not consistent.  Sometimes it happens, sometimes not.  It seems to be more frequent when the command actually has to do something (such as reformatting), but not always.

I'll report the results with JDK 6u31 and 7u3 later.
Comment 8 Miloslav Metelka 2012-04-26 07:52:05 UTC
Just a question: what are your keyboard initial delay and repeat delay settings, isn't there a chance the keyboard would send another keystroke?
Comment 9 nowhereman 2012-04-26 12:12:45 UTC
Keyboard delay is set to minimum; repeat rate is set to maximum.  However, I have not seen this in *any* other program.
Comment 10 Antonin Nebuzelsky 2012-05-24 21:19:42 UTC
> I'll report the results with JDK 6u31 and 7u3 later.

Please, reopen if it happens with these versions. Thanks.