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(){ public void hide(){
table.clearActions(); table.clearActions();
table.toFront(); table.toFront();
button.visible = false;
table.touchable = Touchable.disabled; table.touchable = Touchable.disabled;
table.actions(Actions.fadeOut(0.5f), Actions.visible(false)); table.actions(Actions.fadeOut(0.5f), Actions.visible(false));
if(Core.scene.getKeyboardFocus() == button){ if(Core.scene.getKeyboardFocus() == button){
Core.scene.setKeyboardFocus(null); Core.scene.setKeyboardFocus(null);
} }

View File

@@ -26,4 +26,4 @@ org.gradle.caching=true
org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000 org.gradle.internal.http.connectionTimeout=100000
android.enableR8.fullMode=false android.enableR8.fullMode=false
archash=e1ae1436f2 archash=c8b077369e