When I enter into TextBox, other input actions also fire

How to fix this? I have added check for HasKeyboardFocus, but it always returns False. As logic states, entering in TextBox should block all other input.

By default, this:

Consumes all input it can. The question here is what other things are out there that break the default behaviour? You’d need something uncanny to propagate input from the Text Box.


To clarify, in case I misunderstood:

While you type text into the Text Box, the input propagates to other BPs? Could you produce an example?

Yes.

For example, the “M” key opens map, and when I type “m” into TextBox, the map is also opened.

The thing is that I do not see this behaviour under regular circumstances - test it in a clean project. I’d look into what else make it behave like this.

I have added check for HasKeyboardFocus

This is not needed btw, TextBox always has focus once navigated to, unless something else removes it - which I suspect is the case. I’d look into that. Run the Widget Reflector - see what’s up.

It still does not explain how you can type without focus… What do you think is going on?

I have searched for “SetKeyboardFocus” using “Find in Blueprints” and found nothing. How this focus can be remove in other way?

Switching input modes can shift focus:

image

Solved by placing the following function:

  • and the OnKeyDown with the same content into the widget that contains TextBox.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.