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 244137 - Dialog boxes loose focus
Summary: Dialog boxes loose focus
Status: RESOLVED DUPLICATE of bug 231336
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 243972 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-28 16:38 UTC by jamiepeloquin_nf
Modified: 2014-07-30 13:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (62.67 KB, text/plain)
2014-04-28 16:38 UTC, jamiepeloquin_nf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jamiepeloquin_nf 2014-04-28 16:38:39 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Mac OS X version 10.9.2 running on x86_64
Java; VM; Vendor = 1.8.0_05
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.5-b02

I have encountered problems with dialog boxes where the window seems to lose focus and you can not interact with it using the keyboard. Examples include the Find Usage dialog where the default button is not accessible by the keyboard, and with the New File dialog, where none of the fields can be typed into. All keyboard activity gets directed to the last window that had focus (e.g. the Editor or the Projects).

Thank you,
Jamie
Comment 1 jamiepeloquin_nf 2014-04-28 16:38:42 UTC
Created attachment 146984 [details]
IDE log
Comment 2 jamiepeloquin_nf 2014-05-27 15:16:45 UTC
More information... When in a dialog that is not receiving input from the keyboard, I can click on a button to gain focus in the window (clicking an input field does not yield this result however). I have also nocked this on many other dialog boxes that do not have input fields (only buttons). It seems like the dialogs just do not gain focus unless some control is clicked on.
Comment 3 Stanislav Aubrecht 2014-06-06 08:52:17 UTC
*** Bug 243972 has been marked as a duplicate of this bug. ***
Comment 4 Stanislav Aubrecht 2014-07-24 11:30:55 UTC
Looks like a bug/feature of OS X. Try the following:
- click into NetBeans editor to ensure it has input focus
- right-click into Mail application toolbar and invoke 'Customize...' to show its modal dialog
- the keyboard input focus is still in NetBeans editor

Some native applications interpret right-click as a window activation event instead of showing context menu.
Comment 5 jamiepeloquin_nf 2014-07-24 12:39:15 UTC
I am not sure I completely follow this, as it works in some dialog boxes, and has always worked before Netbeans 8.
Comment 6 Stanislav Aubrecht 2014-07-24 13:05:55 UTC
(In reply to jamiepeloquin_nf from comment #5)
> I am not sure I completely follow this, as it works in some dialog boxes,
> and has always worked before Netbeans 8.

It was probably introduced in the recent update of OS X and/or JDK 8.

It works fine when you active the IDE with a left-button click or cmd+tab. The problems are when your right-click into the IDE first.
Comment 7 Stanislav Aubrecht 2014-07-24 14:02:03 UTC
Alright, the focus problem isn't probably directly related to right-click window activation. I can reproduce it with Find Usages almost all the time.
Comment 8 Stanislav Aubrecht 2014-07-30 13:11:01 UTC

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