Cursor gets locked again

After setting Cursor.lockState to None, it will be reset to Locked almost immediately (right after the calling function). But it happens only for one specific event. I have tested it outside the Editor too.

Is there something I should know about accessing Cursor in some parts of code?

PS: Looks like I forgot to set the proper “space” for this question…

Thanks for all the effort @Harinezumi. Looks like there was one rogue duplicated function call in the player controller that I missed that was causing the issue after all. I don’t know how I could have missed it because I don’t even remember placing it there.