[Rseding91] [MODDING] Cursor focus gets stuck inside hidden textfield
[Rseding91] [MODDING] Cursor focus gets stuck inside hidden textfield
When I hide some custom GUI window (using style.visible=false) in response to a game event (for instance, [esc] closing an opened chest) the WASD keys stop working. This was because the window contained a textfield which had the cursor focused, and it is still focused after closing the window even though the textfield is now hidden. Consequently the player can't tell why the WASD keys aren't working, but they are actually typing text into the hidden field. In part this is related to the inability to control GUI focus; but the bug is that when an element is hidden it should automatically lose focus.
Re: [Twinsen] [MODDING] Cursor focus gets stuck inside hidden textfield
We should just remove the focus from all the fields recursively when hiding an element -> moving to twinsen.
Re: [Rseding91] [MODDING] Cursor focus gets stuck inside hidden textfield
Thanks for the report. This is now fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.
Re: [Rseding91] [MODDING] Cursor focus gets stuck inside hidden textfield
That's great to hear, thanks!