How can I lock mouse to a specific widget in UMG?

Let’s say I have a widget and I have a few buttons in it and I want to lock my mouse within the boundary of one of buttons, how can I lock that?


I think the Lock Mouse node does exactly that (Lock Mouse | Unreal Engine Documentation ).
However, this would lock the mouse to the whole widget. Just a quick thought if you want to lock it only to one button, maybe you can make a widget with only one button and put it inside the other widget so they still look like the same one… I have no clue whether that would work or not, though.