mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-123466 Sheet dialogs doesn't transfer focus back then closed
This commit is contained in:
@@ -2072,13 +2072,13 @@ public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements
|
||||
private final class EditorComponentFocusWatcher extends FocusWatcher {
|
||||
@Override
|
||||
protected void focusedComponentChanged(final Component component, final AWTEvent cause) {
|
||||
if (myWindowManager.getCommandProcessor().getCommandCount() > 0 || component == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final KeyboardFocusManager mgr = KeyboardFocusManager.getCurrentKeyboardFocusManager();
|
||||
final Component owner = mgr.getFocusOwner();
|
||||
|
||||
if (myWindowManager.getCommandProcessor().getCommandCount() > 0 || component == null || component== owner) {
|
||||
return;
|
||||
}
|
||||
|
||||
IdeFocusManager.getInstance(myProject).doWhenFocusSettlesDown(new ExpirableRunnable.ForProject(myProject) {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
Reference in New Issue
Block a user