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

This subforum contains all the issues which we already resolved.
Post Reply
doc
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Mar 28, 2016 3:52 pm
Contact:

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

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex »

We should just remove the focus from all the fields recursively when hiding an element -> moving to twinsen.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13247
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

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.

doc
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Mar 28, 2016 3:52 pm
Contact:

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

Post by doc »

That's great to hear, thanks!

Post Reply

Return to “Resolved Problems and Bugs”