mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-122851 Mac Messages on Java 6: sometimes message doesn't get focus
This commit is contained in:
@@ -151,7 +151,9 @@ public class SheetController {
|
||||
void requestFocus() {
|
||||
final JComponent focusedComponent = (myDoNotAskOption == null) ? myFocusedButton : doNotAskCheckBox;
|
||||
if (focusedComponent == null) return; // it might be we have only one button. it is a default one in that case
|
||||
focusedComponent.requestFocusInWindow();
|
||||
if (SystemInfo.isAppleJvm) {
|
||||
focusedComponent.requestFocus();
|
||||
}
|
||||
}
|
||||
|
||||
JPanel getPanel(final JDialog w) {
|
||||
|
||||
Reference in New Issue
Block a user