First Person Character Set Input Mode UI Only is not working while my character is moving

Hey, i have a widget blueprint for show Inventory. While first person character is moving, when i pressed the P key for open inventory, character is still moving while inventory is open. Character is going on straight line like W is pressed.

How do i avoid? I want to just stop my character when character is moving and open inventory.

Hello ,

Your issue is how the input is being handled when the focus is on the widget. The project does not get the release for the W key so the character will not stop moving. This can be worked around by using Set Input Mode Game and UI instead of Set Input Mode UI Only and your character will stop moving when you let go of the W key!

Good Luck creating!

Hey Tomas,

I fixed it, but its a little bit complexy. Its about C++ first person shooter template and my playercontroller movement system. My playercontroller only reads about own input set type. In C++ fps template we have another movement system CharacterMovement(inheirted)! So i used a Set Ignore Move Input node for disable all pawn input bindings.

Thanks for help.