Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken 2020-05-20 13:56:23 -04:00
commit e8eecf8a1f
3 changed files with 6 additions and 3 deletions

View file

@ -62,7 +62,7 @@ public class ChatFragment extends Table{
update(() -> {
if(net.active() && input.keyTap(Binding.chat) && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null)){
if(net.active() && input.keyTap(Binding.chat) && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null || ui.minimapfrag.shown())){
toggle();
}

View file

@ -43,8 +43,10 @@ public class MinimapFragment extends Fragment{
elem.visible(() -> shown);
elem.update(() -> {
elem.requestKeyboard();
elem.requestScroll();
if(!ui.chatfrag.shown()){
elem.requestKeyboard();
elem.requestScroll();
}
elem.setFillParent(true);
elem.setBounds(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());