emilyploszaj / emi

A featureful and accessible item and recipe viewer
MIT License
233 stars 47 forks source link

Clicking the Search Field doesn't defocus other Mods Text-Fields on Screen #388

Closed shartte closed 8 months ago

shartte commented 8 months ago

Happens with AE2, where the AE2 search box is still focused when I click into the EMI search field.

Loader: NeoForge 1.20.4

I'll investigate this myself, since it might be an issue in AE2 itself, but it's unclear. Focus behavior in Minecraft has always been a problem.

shartte commented 8 months ago

Since your widgets aren't part of the current screens component tree, the default handling will not work. But, your EmiScreenManager should probably make sure that the focus within the current screen's widget tree is cleared (client.currentScreen.setFocused(null))

emilyploszaj commented 8 months ago

Fixed by #389