How to deal with multiple widgets needing focus?

You have a player inventory and you
have a chest inventory. I have a
separate UI for each of them

Put this in both:

306931-annotation-2020-07-12-085946.jpg

Now the keyboard focus is wherever the mouse is.

Or, depending how you set things up - who processes the shift+click (inventory or item stack), have it in the item itself. This way, it’s the currently hovered item that intercepts shift & click.

The pertinent widget needs the isFocusable flag up, too.

1 Like