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 122063 - Focus problem switching between Netbeans and other apps
Summary: Focus problem switching between Netbeans and other apps
Status: RESOLVED DUPLICATE of bug 73960
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-15 20:47 UTC by volkmuth
Modified: 2007-11-16 09:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (105.76 KB, image/png)
2007-11-15 20:48 UTC, volkmuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description volkmuth 2007-11-15 20:47:04 UTC
With Netbeans 6.0 RC1 on MS Windows XP I see the following behavior when using Alt + tab to switch between applications 
while the cursor is in the Netbeans edit window.

If I hold down Alt for 1 second, then press tab once, then release the Alt key I will switch from Netbeans to another 
app.  If I hold down Alt for 1 second, then press tab once, then release the Alt key I switch back to Netbeans and the 
cursor remains in the edit window as expected.

However if I press Alt followed by tab quickly, releasing both nearly simultaneously (probably 10's of milliseconds 
from the pressing of Alt to the pressing of tab), the app switch occurs but when I Alt + tab back to Netbeans the focus 
will be on the menubar rather than in the editor.  Hitting Alt one more time returns the focus to the editor.

Attached is a screenshot.  You'll notice that IE is the active app but the Netbeans menu bar is activated in the 
background.

Netbeans behaves the same way other apps do if you just press Alt, then switch apps using the mouse (i.e. when Netbeans 
loses app focus the menubar is no longer active & the focus will be in the right place when you use the mouse to come 
back to it).

I did not see this with Netbeans 5.5, I don't remember if I saw it with the 6.0 Beta I tried.  This is an admittedly 
minor issue but definitely noticeable if you habitually use Alt+tab.
Comment 1 volkmuth 2007-11-15 20:48:00 UTC
Created attachment 53080 [details]
Screenshot
Comment 2 Jana Maleckova 2007-11-16 09:18:46 UTC

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