# Ctrl+Click the button but select the text in its child editable multi-line text box

**URL:** <https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486>\
**Category:** Blueprint\
**Tags:** visibility, unreal-engine, UE4-27, question\
**Created:** [February 2, 2022, 6:50pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486 "2022-02-02T18:50:25Z")\
**Posts on this page:** 20\
**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:** [February 2, 2022, 6:50pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/1 "2022-02-02T18:50:25Z")

</div>

If set Visibility of the text box to “Visible”, one can Ctrl+Click only on the very thin edge of button outside the text box. If set that parameter to “Not Hit-Testable”, one cannot select text. Who knows how to combine these two features?

---

<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:** [February 3, 2022, 5:45pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/2 "2022-02-03T17:45:41Z")

</div>

The topic is actual.

---

<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:** [February 5, 2022, 4:00am UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/3 "2022-02-05T04:00:50Z")

</div>

Double bump.

---

<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:** [February 6, 2022, 8:50am UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/4 "2022-02-06T08:50:14Z")

</div>

Triple bump.

---

<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:** [September 7, 2024, 2:39pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/5 "2024-09-07T14:39:07Z")

</div>

Unfortunately, despite the elapsed years, the topic is actual again. Quadruple bump.

---

<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:** [September 11, 2024, 6:15pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/6 "2024-09-11T18:15:23Z")

</div>

Quintuple bump.

---

<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:** [September 13, 2024, 9:20pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/7 "2024-09-13T21:20:26Z")

</div>

Sextuple bump.

---

<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:** [September 15, 2024, 8:39am UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/8 "2024-09-15T08:39:14Z")

</div>

Septuple bump.

---

<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:** [September 22, 2024, 2:32pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/9 "2024-09-22T14:32:08Z")

</div>

Octuple bump.

---

<div class="post-metadata">

**Author:** ![baobao4435](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/baobao4435/32/950790_2.png) [@baobao4435](https://forums.unrealengine.com/u/baobao4435)\
**Post date:** [September 22, 2024, 5:34pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/10 "2024-09-22T17:34:34Z")

</div>

2022 was 3 years ago ? lol I thought it was last year.haha

what do you mean “combining”?  
like how would it behave.

---

<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:** [September 22, 2024, 5:38pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/11 "2024-09-22T17:38:25Z")

</div>

Are you questioning seriously or trolling? If first, all the necessary behaviour is described in the topic name.

---

<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:** [September 24, 2024, 4:55pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/12 "2024-09-24T16:55:58Z")

</div>

Bump. The topic is actual again.

---

<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:** [September 24, 2024, 5:09pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/13 "2024-09-24T17:09:08Z")

</div>

> select the text in its child editable multi-line text box

Query the container for the relevant child (or fetch it directly), get text, turn it to string, extract what is needed if just a fragment is needed.

* * *

Since the ask is not very clear (to me), do clarify please: do you want to instead mouse-select a text fragment as if you were using a caret?

---

<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:** [September 24, 2024, 5:13pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/14 "2024-09-24T17:13:15Z")

</div>

Hello @Everynone!

> [@Everynone](#):
>
> do you want to instead mouse-select a text fragment as if you were using a caret?

It would be the optimal way.

Sorry I don’t understand the meaning of

> [@Everynone](#):
>
> Query the container for the relevant child (or fetch it directly)

What does this mean?

---

<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:** [September 24, 2024, 5:14pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/15 "2024-09-24T17:14:44Z")

</div>

> [@Etyuhibosecyu](#):
>
> What does this mean?

Get the widget with the text if you know which one you want. If you do not know **upfront** which one you want, you can ask the button for its children (there can be only one anyway).

* * *

You’ve managed to create a convoluted title, I’m afraid - hence no answers. Or you want something blueprints cannot do. We’ll see. Unless you tell me off, too, for enquiring 🫠 @baobao4435

---

<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:** [September 24, 2024, 5:19pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/16 "2024-09-24T17:19:37Z")

</div>

Just to avoid confusion:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/d/76da5937ed6988af15789d7b277996d28138fc43.png)

What is supposed to happen when the button is ctrl+clicked?

---

<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:** [September 24, 2024, 5:20pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/17 "2024-09-24T17:20:13Z")

</div>

> [@Everynone](#):
>
> Get the widget with the text if you know which one you want. If you do not know **upfront** which one you want

I do know the text box object reference but this does not help. I cannot either Ctrl+Click the parent button or click the child text box.

> [@Everynone](#):
>
> What is supposed happen when the button is ctrl+clicked?

Quick (private) answer. I would also like to right-click this button for the context menu.

---

<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:** [September 24, 2024, 5:25pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/18 "2024-09-24T17:25:53Z")

</div>

> [@Etyuhibosecyu](#):
>
> I cannot either Ctrl+Click the parent button or click the child text box.

i don’t get what you want to do or why this is an issue. Detect ctrl `onKeyDown`, set up a flag. When left click connects, query the flag → do what needs doing either to the button or to the text based on that. Is that it?

> I would also like to right-click this button for the context menu.

You’d need to develop your own button for this - highly recommended. Native `buttons` do not like right clicks and other, _unbuttonlike_ behaviours.

> Quick (private) answer.

What does this even mean? How does this answer my question?

---

<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:** [September 24, 2024, 5:32pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/19 "2024-09-24T17:32:07Z")

</div>

> [@Everynone](#):
>
> Detect ctrl `onKeyDown`, set up a flag.

OnKeyDown depends on the focus. Do I need to detect this on all the widgets in the game? 🙂

> [@Everynone](#):
>
> You’d need to develop your own button for this - highly recommended.

Will OnMouseDown and OnMouseUp work in this case? (Of course, I still mean a text box on top.)  
EDIT: also, do I understand right that this means just creating a new widget and place it inside the other widget? Or something more complex?

> [@Everynone](#):
>
> What does this even mean? How does this answer my question?

This

> [@Everynone](#):
>
> is supposed to happen when the button is ctrl+clicked

---

<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:** [September 24, 2024, 9:03pm UTC](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486/20 "2024-09-24T21:03:18Z")

</div>

> [@Etyuhibosecyu](#):
>
> OnKeyDown depends on the focus. Do I need to detect this on all the widgets in the game?

Can’t read minds, don’t know any criteria you’ve yet to mention… Parhaps list the requirements.

> [@Etyuhibosecyu](#):
>
> This

This what? Please read the question and answer it if you need help. I still have no clue what you want from the text in the button and under what circumstances should it be selectable.

That’s literally what I’ve got. Ctrl click text or button and select some text that may not be hit-testable.

[Next page](https://forums.unrealengine.com/t/ctrl-click-the-button-but-select-the-text-in-its-child-editable-multi-line-text-box/493486.md?page=2)
