mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
focus gain is delayed in EDT - that should set it better
This commit is contained in:
@@ -19,6 +19,7 @@ package forge.view;
|
||||
|
||||
import javax.swing.JButton;
|
||||
|
||||
import forge.FThreads;
|
||||
import forge.gui.SOverlayUtils;
|
||||
import forge.gui.match.VMatchUI;
|
||||
|
||||
@@ -62,7 +63,7 @@ public class ButtonUtil {
|
||||
|
||||
// ensure we don't steal focus from an overlay
|
||||
if (!SOverlayUtils.overlayHasFocus()) {
|
||||
button.requestFocusInWindow();
|
||||
FThreads.invokeInEdtLater(new Runnable() { @Override public void run() { button.requestFocusInWindow(); } });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user