Function Window.dispatchAction

dispatch action to main widget

bool dispatchAction(
  const(Action) action,
  Widget sourceWidget = null
);