mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-142216 Mac OS: "Platform and Plugins Updates" dialog (sheet message) doesn't have focus when shown from "Find Action" popup
This commit is contained in:
@@ -548,16 +548,13 @@ public abstract class ChooseByNameBase {
|
||||
|
||||
EventQueue queue = Toolkit.getDefaultToolkit().getSystemEventQueue();
|
||||
if (queue instanceof IdeEventQueue) {
|
||||
if (!((IdeEventQueue)queue).wasRootRecentlyClicked(oppositeComponent)) {
|
||||
if (((IdeEventQueue)queue).wasRootRecentlyClicked(oppositeComponent)) {
|
||||
Component root = SwingUtilities.getRoot(myTextField);
|
||||
if (root != null && root.isShowing()) {
|
||||
IdeFocusManager.getInstance(myProject).requestFocus(myTextField, true);
|
||||
return;
|
||||
if (root == null || root.isShowing()) {
|
||||
hideHint();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hideHint();
|
||||
}
|
||||
}
|
||||
}, 5);
|
||||
|
||||
Reference in New Issue
Block a user