A test mission is attached. The setup is pretty specific.
The following UI setup:
- Search bar (CT_EDIT)
- CT_CONTROLS_GROUP with
- Subgroups (same CT) containing
- A structured text control (most likely any other interactable control)
- Subgroups (same CT) containing
- Another focusable control
When searching something the entries get removed by hiding them via
_x ctrlShow false;
and showing them vice versa.
When clicking on the structured text control and then try to search again the focus of the edit control is lost and set to another control on the display (in the example it is the cancel button). Commenting out the ctrlShow line focus is maintained.