[Rseding91] [MODDING] Cursor focus gets stuck inside hidden textfield
Posted: Mon Jul 03, 2017 6:03 pm
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.