Disabling cursor unlock when pressing escape.

Is there anyway to stop the cursor from unlocking when I press escape while in the editor?

This is still an issue for me in 2018.2.16f1. Is there any solution for the problem?

I’m curious, as well.