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
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.
I can confirm that this is an issue.