Changed dispatchEvent to match FOX>=1.7.37; fixes DDE & DND regressions