I’m having issues detecting whether shift is pressed when I press a button widget.
The following picture shows the simplified blueprint setup in all the following cases, in a widget blueprint, child of user widget.
What happens is that if I start clicking the button, while shift is pressed, it will always return false. If I release shift, press shift again and once again click the button, it returns true.
If I click the button once, then shift click it, it returns true. I must have interacted with the button for it to detect the shift press, or something.
So I decided to try the same thing with a border.
Create a border, bind the on mouse button down to a function using create binding and implement the node setup.
Now what happens is that it will detect shift the second time I click. However, if I (while always holding shift) click the button, and then the border again, returns false, but the first click only.
If I click the button, release shift and press shift and click the border, returns true.
So if I alternate between the button and the border, always holding shift, they will always return false.
First I thought it might have been my project, but I recreated it in a newly made template.
Am I still missing something? Is someone able to replicate the issue?
And what alternatives are there?