Fix for no cursor in editor on focus regain