change back to prompt buttons grabbing focus from other windows on prompt update

This commit is contained in:
pfps
2017-02-05 12:40:34 +00:00
parent a45335791d
commit d63b3b7846

View File

@@ -581,10 +581,10 @@ public final class CMatchUI
if (toFocus != null) {
final Runnable focusRoutine = new Runnable() {
@Override public final void run() {
toFocus.requestFocusInWindow();
toFocus.requestFocus(); // focus here even if another window has focus - shouldn't have to do it this way but some popups grab window focus
}
};
if ( FThreads.isGuiThread() ) { //pfps run this now whether in EDT or not so that it doesn't clobber later stuff
if ( FThreads.isGuiThread() ) { // run this now whether in EDT or not so that it doesn't clobber later stuff
FThreads.invokeInEdtNowOrLater(focusRoutine);
} else {
FThreads.invokeInEdtAndWait(focusRoutine);