Button works only when doubleclick

I believe the issue is that your widget has no focus. When opening a widget, you should call SetInputModeUIOnly with your widget as the target widget to focus on.

2 Likes