# UMG widget button needs arrow input before focus

**URL:** <https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976>\
**Category:** UI\
**Tags:** bug, focus, unreal-engine, Blueprint, question, UMG\
**Created:** [April 30, 2018, 5:29pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976 "2018-04-30T17:29:45Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icepaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Icepaw](https://forums.unrealengine.com/u/Icepaw)\
**Post date:** [April 30, 2018, 5:29pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/1 "2018-04-30T17:29:45Z")

</div>

So I’m trying to make a menu system that uses the keyboard or gamepad. For the most part, it works, you can highlight a button and select it. My issue is, when I first open the menu, my widget doesn’t get keyboard focus until I press the down arrow on the keyboard. This results in you skipping the first button on the menu, but pressing the up arrow afterwards allows you to highlight and select it.  
This is when you first open the menu:

 ![239388-whenmenuopens.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/9/9892c04ed5949b907a6d4fa4c69fbef50f7ca021.png)

This is after you press the down arrow:

 ![239389-afterpressingdownarrow.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/9/cc9d1c08c9e9cb8a718195004390fa8a9ad6f88b.png)

and then when you press up:

 ![239390-pressingupafterfirstinput.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/9/189ec1984738d6c67976fd823770ee8e56b1d057.png)

I have tried using set InputMode but that just yields the same results. I can’t work out if this is a bug or if this is just down to me not using the functions correctly, the blue print I’m using for my menu widget is below. Any help would be much appriciated

 ![239401-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/3/a03e7972a0dde08769ef06b3b64d3fac63a92f35.png)

---

<div class="post-metadata">

**Author:** ![goncasmage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goncasmage](https://forums.unrealengine.com/u/goncasmage)\
**Post date:** [April 30, 2018, 7:09pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/2 "2018-04-30T19:09:10Z")

</div>

Try calling SetUserFocus and sending the GetPlayerController to that node, after setting keyboard focus in your Construct event.

---

<div class="post-metadata">

**Author:** ![Icepaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Icepaw](https://forums.unrealengine.com/u/Icepaw)\
**Post date:** [April 30, 2018, 7:21pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/3 "2018-04-30T19:21:50Z")

</div>

No good, just gave me the same result.

---

<div class="post-metadata">

**Author:** ![goncasmage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@goncasmage](https://forums.unrealengine.com/u/goncasmage)\
**Post date:** [April 30, 2018, 7:40pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/4 "2018-04-30T19:40:55Z")

</div>

Try going to Play → Advanced Settings → and make sure the first option (Game Gets Mouse Control) is set to true.

---

<div class="post-metadata">

**Author:** ![Kmontoya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kmontoya](https://forums.unrealengine.com/u/Kmontoya)\
**Post date:** [April 30, 2018, 7:43pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/5 "2018-04-30T19:43:14Z")

</div>

Edit: completely misread, my apologies, thought arrow was ‘mouse arrow’. However, I still think this may yield some assistance towards resolution.

Ah, yes, I had fun trying to figure this one out myself with my inventory system. Took me a while too, but this is what ultimately worked, regardless of how bizarre it may seem haha.

Now I’ve included everything that I use to display and hide my inventory system, so most of this may be unrelated, however, I included it just in case. The main one I think you will need is the **first image** , the **Widget BP Nodes**.

Hopefully this helps in some way!

 ![239415-inventoryfocus.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/b/f0b9ce61161a6aa926361cf7ea2933edc4407126.jpeg)

 ![239416-inventoryfocus2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/f/f5f75cad9ae28652e6462ebe83ffc7e40ed7eab3.jpeg)

 ![239418-inventoryfocus3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/3/9438f7d5b469c37b6bd09472f23f0839a7f7cbfd.jpeg)

 ![239419-inventoryfocus4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/2/b62cfeebd8b89d392f493e4335fc65d093cca833.jpeg)

---

<div class="post-metadata">

**Author:** ![Icepaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Icepaw](https://forums.unrealengine.com/u/Icepaw)\
**Post date:** [April 30, 2018, 7:49pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/6 "2018-04-30T19:49:41Z")

</div>

It’s set to true now and coupled with your other suggestion but still no change 😕

---

<div class="post-metadata">

**Author:** ![Icepaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Icepaw](https://forums.unrealengine.com/u/Icepaw)\
**Post date:** [May 1, 2018, 4:08pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/7 "2018-05-01T16:08:01Z")

</div>

Thanks for your input but unfortunately I’ve been unable to yield any results ☹ I’ve tried messing around with the is focusable bool but it seems sort of redundant since I already have is focusable ticked in the details panel.

---

<div class="post-metadata">

**Author:** ![Narg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/narg/32/870597_2.png) [@Narg](https://forums.unrealengine.com/u/Narg)\
**Post date:** [July 31, 2018, 12:31am UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/8 "2018-07-31T00:31:56Z")

</div>

I have this exact same issue, but I can’t seem to solve it.

---

<div class="post-metadata">

**Author:** ![phil123456](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phil123456](https://forums.unrealengine.com/u/phil123456)\
**Post date:** [February 7, 2022, 12:49pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/9 "2022-02-07T12:49:53Z")

</div>

same here, I have to click in my main menu game before being able to click/hover the buttons

---

<div class="post-metadata">

**Author:** ![Fractal\_C](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fractal\_C](https://forums.unrealengine.com/u/Fractal_C)\
**Post date:** [September 10, 2022, 9:05pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/10 "2022-09-10T21:05:23Z")

</div>

I had what I think is a similar issue, where I manually set focus on a widget when opening a pause menu, but pressing the button with gamepad input wouldn’t register, despite the widget definitely being in focus. If I navigated to a different button and then back to the first one it worked, but never on opening the menu.

I solved it by overriding the “OnKeyUp” function in the widget and inserting relevant event/functions on a switch based on the pressed key name. You can also use “OnKeyDown”, but that was causing other issues with my setup.

![OKU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/1/c318475ee817fec95a53f96eac2035d21107a287.jpeg)

 ![FocusSwitch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/9/6792055b8eefccef7f1798231eff0eecafa9df37.jpeg)

---

<div class="post-metadata">

**Author:** ![Facuz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/facuz/32/973823_2.png) [@Facuz](https://forums.unrealengine.com/u/Facuz)\
**Post date:** [September 3, 2024, 2:37pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/11 "2024-09-03T14:37:03Z")

</div>

Just in case this may be useful. Maybe this is what was happening to you guys. In my case, I needed to target the actual button within the widget because I was using a custom widget button inside another menu widget. Targeting the widget button won’t work because it’s actually a “canvas”, you need to target the button inside the canvas instead.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/9/2a959c7c56c5ee7b54ad07f66d8c3ba3eaa64d92.png)

---

<div class="post-metadata">

**Author:** ![Jun\_Hoshinova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jun\_Hoshinova](https://forums.unrealengine.com/u/Jun_Hoshinova)\
**Post date:** [September 28, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/12 "2024-09-28T13:11:27Z")

</div>

Thank you so much been pulling my hair out with this issue and this solved it!

---

<div class="post-metadata">

**Author:** ![pixhitt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pixhitt](https://forums.unrealengine.com/u/pixhitt)\
**Post date:** [December 5, 2024, 3:41pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/13 "2024-12-05T15:41:11Z")

</div>

How did you solve it?

---

<div class="post-metadata">

**Author:** ![Low5ive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Low5ive](https://forums.unrealengine.com/u/Low5ive)\
**Post date:** [February 12, 2025, 4:15pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/14 "2025-02-12T16:15:47Z")

</div>

Thank you!! I had this exact issue, even though I’d set “Desired Focus Widget” to the button itself within the widget.

---

<div class="post-metadata">

**Author:** ![thejturner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thejturner](https://forums.unrealengine.com/u/thejturner)\
**Post date:** [April 23, 2025, 10:11pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/15 "2025-04-23T22:11:44Z")

</div>

Thank you immensely!!

---

<div class="post-metadata">

**Author:** ![danForsgren](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@danForsgren](https://forums.unrealengine.com/u/danForsgren)\
**Post date:** [April 26, 2025, 7:49pm UTC](https://forums.unrealengine.com/t/umg-widget-button-needs-arrow-input-before-focus/423976/16 "2025-04-26T19:49:14Z")

</div>

than you ! was getting really frustrated about this one. thank you for saving my day
