outCMEvent->eventStructType = NS_MOUSE_EVENT;
ConvertKeyEventToContextMenuEvent(const nsKeyEvent* inKeyEvent, nsMouseEvent* outCMEvent){  *(nsInputEvent*)outCMEvent = *(nsInputEvent*)inKeyEvent;    outCMEvent->message = NS_CONTEXTMENU_KEY;  outCMEvent->isShift = outCMEvent->isControl = outCMEvent->isAlt = outCMEvent->isMeta = PR_FALSE;    outCMEvent->clickCount = 0;  outCMEvent->acceptActivation = PR_FALSE;}