receiver->RemoveEventListener(NS_LITERAL_STRING("keypress"), this, PR_TRUE); receiver->RemoveEventListener(NS_LITERAL_STRING("click"), this, PR_TRUE);
nsSoftKeyBoard::Shutdown(){  nsCOMPtr<nsPIDOMWindow> privateWindow = do_QueryInterface(mTopWindow);    if (!privateWindow)    return NS_ERROR_UNEXPECTED;    nsIChromeEventHandler *chromeEventHandler = privateWindow->GetChromeEventHandler();  nsCOMPtr<nsIDOMEventReceiver> receiver(do_QueryInterface(chromeEventHandler));  if (!receiver)    return NS_ERROR_UNEXPECTED;  receiver->RemoveEventListener(NS_LITERAL_STRING("focus"), this, PR_TRUE);  receiver->RemoveEventListener(NS_LITERAL_STRING("blur"), this, PR_TRUE);    mTopWindow = nsnull;  return NS_OK;}