mojira.dev
MC-233042

Server Address field isn't focused when Direct Connection menu is opened

From the main menu click on Multiplayer, then Direct Connection. Server Address field won't be focused. If you press keys or shortcuts, nothing changes until you click on the field.

This behavior came with 20w10a. In 1.15 and earlier this field was focused when entering this menu.


Code analysis by @unknown in this comment.

Attachments

Comments 4

I can confirm that this is an issue.

Code analysis based on 1.18.1 with yarn mappings.

This bug can be fixed in net.minecraft.client.gui.screen.DirectConnectScreen#init(), by removing the line this.addressField.setTextFieldFocused(true);

It's unclear why removing that line would fix the bug. Perhaps more investigation is warranted.

Can confirm in 1.18.1.

Can confirm in 1.19. Note that this issue isn't exclusive to Ubuntu 21.04, openjdk 16.0.1.

Timofey X

Panda4994

Confirmed

Accessibility, UI

1.17.1, 21w37a, 1.18.1, 1.19, 1.19.2, 22w45a

22w46a

Retrieved