mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
temporary fix for popups which stay forever
This commit is contained in:
@@ -532,7 +532,7 @@ public abstract class ChooseByNameBase {
|
||||
if (queue instanceof IdeEventQueue) {
|
||||
if (!((IdeEventQueue)queue).wasRootRecentlyClicked(oppositeComponent)) {
|
||||
Component root = SwingUtilities.getRoot(myTextField);
|
||||
if (root != null) {
|
||||
if (root != null && root.isShowing()) {
|
||||
root.requestFocus();
|
||||
myTextField.requestFocus();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user