Widgets lose focus - Inventory with tab key

Hello all,

On Building my inventory I managed to workaround all events and refocus my inventory (Could not close inventory with “Tab” key when the player clicks on widgets onscreen, but somehow if it has a picture I cannot get that event at all.

Workaround the lost focus in widgets:

When It has picture:

Any solution to get this event?

Discord: mateu998
Help would be appreciated :smiley:

BR

If you want to close the UI widget with tab you need to set up an on key pressed override function on the widgets and child widgets

Can you teach me via discord: mateu998 I tried that is not working. BR

1 Like

I’ll connect with you on there in a few hours not at my computer atm

1 Like

Also the on click release events you have setting the focus to the viewport, youd want the focus to be set to the widget with the input override or it won’t work

Key down event is not triggered when I switch 2 items in Inventory, and inventory gets sutck as well, is like somehow I am focusing the picure in the item slot but I have a button in fron of the image.

Ensure the image is not set to focusable, if there is a button component id make that and the widget itself the only focusable elements

When I click the image there is no event trigger but if double click it picks as click.
Double check all the widget, images , all boxes etc

Havent figure it out still…

I did it with event on hover and focus back to inv as you said thanks for the tips bro