Set cursor to mouse position on editing enter