Hello everyone.
We are having a small issue with focusing a TextField that lives inside a TreeView. We created a custom TreeView inside a Custom Editor Window that each item contains some buttons and textfields. One of the things that we done is that when clicking on a button inside the TreeView Item, it will create a new item. This new item contains a TextField. So after the creation I am trying to ensure this TextField is focused, but nothing of the previous solutions found online seems to work. textField.Focus(), textField.ElementAt(0).Focus(), nothing. I checked that regardless what I try, the focusController.focusedElement is always on the TreeView element. Since the tab works, because after clicking on the button, the focus is on it, and after pressing tab a couple of times, I can select other elements in the proper order, but I can’t seem to be able to select, nor find the tab of the newly created TextField to be able to change the tabIndex. We are at a loss now.
Does any one have any idea how to focus items (textfield) inside a TreeView?
Thanks