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 218811 - alt + enter hit to fast put focus on the "File" menuitem
Summary: alt + enter hit to fast put focus on the "File" menuitem
Status: RESOLVED DUPLICATE of bug 186557
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-22 08:32 UTC by akobberup
Modified: 2012-11-07 14:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
In this snapshot, the file menuitem has gotten focus (7.91 KB, application/octet-stream)
2012-09-22 08:32 UTC, akobberup
Details
In this snapshot, the dialog has got focus as it should. (8.81 KB, application/octet-stream)
2012-09-22 08:33 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2012-09-22 08:32:40 UTC
Created attachment 124742 [details]
In this snapshot, the file menuitem has gotten focus

When hitting alt + enter when having something selected in the Java editor, most of the time the File menu item is selected (the dialog for selecting the alt+enter action is also opened, but is not having focus).

I have found, that it is a timing issue - if you hit Alt + Enter and let go really fast, it will happen. If you however keep both keys pressed, the dialog will open and gain focus.

To reproduce, simply type in some code in the java editor like this:

	public static void main( String[] args ) {
		System.out.println( "My String" );
	}

Highlight "My String" and hit Alt + Enter and let go og both keys real fast.

Attached is snapshots of this happening, and not happening.

I will add that this is quite fustrating when working, as it disrupts the flow of coding quite a bit - you have to stop thinking of what you are doing to figure out what the heck is going on with the editor, as menus are flying open as you hit the arrow keys to select the refactoring in the opened, but unfocussed dialog.
Comment 1 akobberup 2012-09-22 08:33:37 UTC
Created attachment 124743 [details]
In this snapshot, the dialog has got focus as it should.
Comment 2 Jan Lahoda 2012-11-07 14:49:06 UTC

*** This bug has been marked as a duplicate of bug 186557 ***