Hey there!
I’m modifying CommonAnalogCursor
to work with keyboard navigation. So far it’s working great however there is one bug that i cannot overcome. When I change input type to mouse&keyboard it’s all fine until I mouse click on anything that is not a button. Then focus is sent to the Viewport and I cannot navigate with keyboard anymore.
After changing input method to gamepad however it’s changing focus to the correct widget that was selected before and navigation works again even after changing yet again to mouse&keyboard.
Does anyone here know how can I properly restore focus when pressing any navigation key on keyboard if it was lost from my widget?
For now I am reverting focus OnMouseButtonUP
to my widget but it feels very hacky and I’d prefer cleaner solution.