Merge pull request #9697 from Filoppi/cursor_locking Implement Cursor Locking and input focus checks for it