That's probably not the right way to describe it....
I have some plugin devices with config dialogs that have a lot of controls. So I thought that I would group them and use a dropdown menu to switch between the groups. This works really well but I have noticed that text entered into a textfield is not "cached" to the values dict unless focus is removed from the textfield before it's hidden. For example:
Enter something into textfield A, and leave focus on the field.
Select a new group from the dropdown (which hides textfield A).
Select the group containing textfield A again.
Entered text is gone.
If focus is moved away from textfield A before switching groups, it's retained. I've tried several iterations of attaching callbacks to the dropdown menu and to the textfield to try to force the text to be cached. I thought I had hit on a solution but either (a) I was wrong, or (b) I lost it. The dropdown to switch groups is *not* a dynamic list.
Is there a reliable way to cache the text when the textfield is hidden (while it still has focus)?