Add comment for setting cursor type.