[2.0.14] Display panel clears unsaved changes when another GUI is opened
Posted: Sun Nov 03, 2024 10:57 am
I'm editing a display panel, adding a few dozen messages to it. After going through a lot of them I don't notice that the "Edit Message" text input box isn't focussed and start typing something beginning with "T", which opens the technology tree. I press "T" again to close the research window, and I find the the "Edit Message" window has closed, but the display panel GUI is still open and all the unsaved changes in it have been removed.
Since the display panel GUI remains open after closing the research screen, I'd expect it to retain all the unsaved changes. Or if possible, prevent opening another GUI and show the unconfirmed changes dialog first.
But another problem here is the edit message window. Would it be possible to make the text box focussed by default when opening this dialog window? I feel like it not being focussed leads to accidentally opening other menus quite often. It's easy to either not notice the input has no focus or make a mistake while quickly editing a lot of messages. Since that window's prime function is to edit a text message (and the only other function - adding an icon to the rich text edit - is only accessed via a click anyway and doesn't care about focus), I think default focus on the text box would be better here.
Since the display panel GUI remains open after closing the research screen, I'd expect it to retain all the unsaved changes. Or if possible, prevent opening another GUI and show the unconfirmed changes dialog first.
But another problem here is the edit message window. Would it be possible to make the text box focussed by default when opening this dialog window? I feel like it not being focussed leads to accidentally opening other menus quite often. It's easy to either not notice the input has no focus or make a mistake while quickly editing a lot of messages. Since that window's prime function is to edit a text message (and the only other function - adding an icon to the rich text edit - is only accessed via a click anyway and doesn't care about focus), I think default focus on the text box would be better here.