# When I enter into TextBox, other input actions also fire

**URL:** <https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 8, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054 "2024-08-08T13:25:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [August 8, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/1 "2024-08-08T13:25:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 8, 2024, 2:53pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/2 "2024-08-08T14:53:27Z")

</div>

> [@Etyuhibosecyu](#):
>
> How to fix this?

By default, this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/0/880285cc5c1b69d510a5cfb461a322d327ed4354.png)

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?

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [August 8, 2024, 3:05pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/3 "2024-08-08T15:05:15Z")

</div>

> [@Everynone](#):
>
> While you type text into the Text Box, the input propagates to other BPs?

Yes.

> [@Everynone](#):
>
> Could you produce an example?

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

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 8, 2024, 3:08pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/4 "2024-08-08T15:08:38Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [August 8, 2024, 3:19pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/5 "2024-08-08T15:19:53Z")

</div>

> [@Everynone](#):
>
> TextBox always has focus once navigated to, **unless** something else removes it - which I suspect is the case.

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

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 8, 2024, 3:22pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/6 "2024-08-08T15:22:08Z")

</div>

Switching input modes can shift focus:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/0/c60023e4b7d49d894958ba0fd0de506e2dbd3691.png)

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [August 8, 2024, 3:44pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/7 "2024-08-08T15:44:06Z")

</div>

Solved by placing the following function:

 ![2024-08-08_18-39-54](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/7/ee7fcc5407caf4e3270d07f021ddd03cb2b1d568.png)

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

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 7, 2024, 3:44pm UTC](https://forums.unrealengine.com/t/when-i-enter-into-textbox-other-input-actions-also-fire/1967054/8 "2024-09-07T15:44:33Z")

</div>

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