Icon refactoring
This commit is contained in:
@@ -183,7 +183,7 @@ public class ChatFragment extends Table{
|
||||
|
||||
if(!shown){
|
||||
scene.setKeyboardFocus(chatfield);
|
||||
shown = !shown;
|
||||
shown = true;
|
||||
if(mobile){
|
||||
TextInput input = new TextInput();
|
||||
input.maxLength = maxTextLength;
|
||||
@@ -199,10 +199,13 @@ public class ChatFragment extends Table{
|
||||
chatfield.fireClick();
|
||||
}
|
||||
}else{
|
||||
scene.setKeyboardFocus(null);
|
||||
shown = !shown;
|
||||
scrollPos = 0;
|
||||
sendMessage();
|
||||
//sending chat has a delay; workaround for issue #1943
|
||||
Time.run(2f, () ->{
|
||||
scene.setKeyboardFocus(null);
|
||||
shown = false;
|
||||
scrollPos = 0;
|
||||
sendMessage();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user