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 500

Summary: Shortcuts work on modal dialogs.
Product: platform Reporter: Jan Jancura <jjancura>
Component: -- Other --Assignee: support <support>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Jancura 1998-08-21 23:38:14 UTC
One way to fix it is to remember thread of AWT-EventQueue0 and then test if the thread that entered the TopFrame.FocusMananger is the same.

[jglick] At least in JDK 1.2.2, the thread is always a java.awt.EventDispatchThread named AWT-EventQueue-nnn and this number is incremented often, regardless of whether a modal dialog or something els
e invoked the focus manager.

Perhaps the focused component could be tested to see if it is contained in a TopComponent or the MainWindow or not.

[jglick] Now should disable all shortcuts when a dialog is being shown, except if the action uses a special property indicating it should be global, as does HelpAction.
Comment 1 Marek Grummich 2000-07-25 09:23:59 UTC
Priority is changed to P4 (normal).
Comment 2 Marian Mirilovic 2002-04-12 14:14:28 UTC
closed