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.
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.
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
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.
Reporter, please attach your messages.log to this bug. http://wiki.netbeans.org/FaqLogMessagesFile
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
Reproducible consistently? Could please try with 6u31 and 7u3? Thanks.
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.
Just a question: what are your keyboard initial delay and repeat delay settings, isn't there a chance the keyboard would send another keystroke?
Keyboard delay is set to minimum; repeat rate is set to maximum. However, I have not seen this in *any* other program.
> I'll report the results with JDK 6u31 and 7u3 later. Please, reopen if it happens with these versions. Thanks.