I’m trying to do one simple thing; give the game viewport keyboard focus after I hide a panel containing an EditableTextBox. This isn’t happening. I’ve tried the ClearKeyboardFocus and SetFocusToGameViewport nodes with no luck, and also tried putting in a small delay.
On a key press, if it’s not already open, the panel containing the EditableTextBox is set to visible and given focus so you can start typing immediately. This works fine.
On text commit, using a ‘Switch on ETextCommit’ node, I have it set the text box to hidden (after handling the text entered). Then I’d like to be able to press the key again to re-open said EditableTextBox and type in it again, without having to click the mouse button. At the moment, I have to click in the viewport after closing the text box before I can open it again.
Does anyone know a fix for this? Many thanks in advance