Fixed keyboard focus remaining on cancel button after loading hides
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user