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 139983

Summary: Alt+Tab often leaves the menu in a selected state
Product: platform Reporter: bmorearty <bmorearty>
Component: -- Other --Assignee: issues@platform <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description bmorearty 2008-07-15 06:41:10 UTC
This one's really starting to annoy me. :-)  Hitting Alt+Tab to switch apps and then switching back to NetBeans leaves 
the File menu highlighted.

1. Use Windows. This is an OS-specific bug.
2. Type Alt+Tab, a very common key combination to switch to another running application. 
3. Often when you do this the File menu will become highlighted (selected) and stays selected.
4. Alt+Tab back to NetBeans.
5. Don't notice that the File menu is highlighted.
6. Start typing into the editor.  Your keystrokes are interpreted as menu commands!  Yikes.

This happens about half the time I use Alt+Tab.  It seems to be slightly more reproducible if I hit Tab pretty quickly 
after hitting Alt.  (But certainly not more quickly than humanly possible; otherwise it wouldn't happen so much.)

The standard Windows behavior is:
- Typing Alt and then releasing the Alt key will highlight the first menu (typically File).  NetBeans does this 
correctly.
- But typing Alt+Tab should not highlight the menu.
Comment 1 Tomas Danek 2008-08-18 18:37:13 UTC
->Core/code. Really not sure where should this be fixed...Lukasi, please reassign.
Comment 2 Lukas Hasik 2008-08-22 12:46:27 UTC
Known Swing bug, not Netbeans specific...see info in duplicates. Anyway thanks for the report.

*** This issue has been marked as a duplicate of 73960 ***