Page 1 of 1

[Rseding91] [MODDING] Cursor focus gets stuck inside hidden textfield

Posted: Mon Jul 03, 2017 6:03 pm
by doc
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

Posted: Tue Jul 04, 2017 12:43 pm
by kovarex
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

Posted: Fri Jul 07, 2017 2:32 pm
by Rseding91
Thanks for the report. This is now fixed for the next version of 0.15.

Re: [Rseding91] [MODDING] Cursor focus gets stuck inside hidden textfield

Posted: Sat Jul 08, 2017 3:44 pm
by doc
That's great to hear, thanks!