How to make UMG block left and right clicks

So it seems like this is not possible? The visibility setting seems like it should do this, but it doesn’t.
This is a really basic feature, surely I’m not the first person that needed this.