Keyboard loses focus when opening HUD element

How is the Tab key pressing implemented in the the widget’s onKeyDown? Is the widget keyboard focusable?

Here’s the whole shebang:


I see you’re using Input Mode Game and UI but it’s pretty much the same case. You grant Character Sheet focus - the PC cannot process input unless the widget loses it. Clicking on the screen does it, the PC gets focus back and the ability to process input again.


Consider implementing the Tab → Close in the widget. Or do not give the widget focus in the first place. Kind of depends on how you need the whole thing to work.