event.isShift = false; event.isControl = false; event.isAlt = false; event.isMeta = false;
event.isShift = PR_FALSE; event.isControl = PR_FALSE; event.isAlt = PR_FALSE; event.isMeta = PR_FALSE;
nsHTMLInputElement::Click(){  nsIDocument* doc; // Strong  nsresult rv = GetDocument(doc);  if (NS_SUCCEEDED(rv) && doc) {    PRInt32 numShells = doc->GetNumberOfShells();    nsIPresShell* shell = nsnull; // Strong    nsCOMPtr<nsIPresContext> context;    for (PRInt32 i=0; i<numShells; i++) {      shell = doc->GetShellAt(i);      if (shell) {        rv = shell->GetPresContext(getter_AddRefs(context));        if (NS_SUCCEEDED(rv) && context) {	  nsEventStatus status = nsEventStatus_eIgnore;	  nsMouseEvent event;	  event.eventStructType = NS_GUI_EVENT;	  event.message = NS_MOUSE_LEFT_CLICK;    event.isShift = false;    event.isControl = false;    event.isAlt = false;    event.isMeta = false;    event.clickCount = 0;    event.widget = nsnull;          rv = HandleDOMEvent(context, &event, nsnull, NS_EVENT_FLAG_INIT, &status);        }	NS_RELEASE(shell);      }    }    NS_RELEASE(doc);  }  return NS_OK;}