fix EditBox new API on mac