diff --git a/core/src/mindustry/ui/fragments/LoadingFragment.java b/core/src/mindustry/ui/fragments/LoadingFragment.java index 6d8b4261ee..ec55e99001 100644 --- a/core/src/mindustry/ui/fragments/LoadingFragment.java +++ b/core/src/mindustry/ui/fragments/LoadingFragment.java @@ -111,6 +111,9 @@ public class LoadingFragment{ table.toFront(); table.touchable = Touchable.disabled; table.actions(Actions.fadeOut(0.5f), Actions.visible(false)); + if(Core.scene.getKeyboardFocus() == button){ + Core.scene.setKeyboardFocus(null); + } } private void text(String text){