fix setMaxLength issue of EditBox-mac