mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-133699 Focus is stolen by IDEA to activate editor after project opening
This commit is contained in:
@@ -123,8 +123,11 @@ public class SheetMessage {
|
||||
focusCandidate = IdeFocusManager.getGlobalInstance().getLastFocusedFor(IdeFocusManager.getGlobalInstance().getLastFocusedFrame());
|
||||
}
|
||||
|
||||
LOG.assertTrue(focusCandidate != null, "The should return focus on closing the message");
|
||||
focusCandidate.requestFocus();
|
||||
// focusCandidate is null if a welcome screen is closed and ide frame is not opened.
|
||||
// this is ok. We set focus correctly on our frame activation.
|
||||
if (focusCandidate != null) {
|
||||
focusCandidate.requestFocus();
|
||||
}
|
||||
}
|
||||
|
||||
private static void maximizeIfNeeded(final Window owner) {
|
||||
|
||||
Reference in New Issue
Block a user