Is there any way to limit cursor movement by the gamepad during widget animation?

I use Common UI to create my UI.

For example,

  • When you press the Widget’s close button by the gamepad and the Widget is animated to close
  • When you press the button by the gamepad and the button is animated

During such an animation, I do not want to change the focus/hover state using the gamepad’s button.

I thought about temporarily changing the SetInputMode of the PlayerController, but if I change it to GameOnly during the Widget→Widget animation, the game character can move momentarily.

Is there any good way to temporarily block all UI input?