IDEA-205190: Misplaced Mouse Cursor

This commit is contained in:
Sergey Malenkov
2019-01-29 13:27:33 +03:00
parent 787a67eb0b
commit 2bc6e2b57d
@@ -1048,7 +1048,7 @@ public class AbstractPopup implements JBPopup {
removeActivity();
return;
}
if (myPreferredFocusedComponent != null && myInStack && myFocusable) {
if ((myPreferredFocusedComponent instanceof JButton || myPreferredFocusedComponent instanceof JTextField) && myFocusable) {
IJSwingUtilities.moveMousePointerOn(myPreferredFocusedComponent);
}