F9 behaves differently than the "Shot" command

The docs claim the F9 is a key binding for the “Shot” command… But F9 key press captures UMG widgets, while “Shot” command doesn’t.
Any ideas how to make the “Shot” command also capture UMG widgets? Or execute the F9 screenshot behavior from code?