Fixed keyboard focus remaining on cancel button after loading hides

This commit is contained in:
Anuken
2026-02-09 19:51:12 -05:00
parent a55e0a3d53
commit 4073ffbbb6
2 changed files with 3 additions and 1 deletions

View File

@@ -109,8 +109,10 @@ public class LoadingFragment{
public void hide(){
table.clearActions();
table.toFront();
button.visible = false;
table.touchable = Touchable.disabled;
table.actions(Actions.fadeOut(0.5f), Actions.visible(false));
if(Core.scene.getKeyboardFocus() == button){
Core.scene.setKeyboardFocus(null);
}