Issue #4294: Add eventManager.dispatchCustomEvent