UpdateTextInputCommands(NS_ConvertASCIItoUCS2("undo"));
UpdateTextInputCommands(NS_LITERAL_STRING("undo"));
NS_IMETHODIMP nsTextInputListener::DidDo(nsITransactionManager *aManager,  nsITransaction *aTransaction, nsresult aDoResult){  // we only need to update if the undo count is now 1  PRInt32 undoCount;  aManager->GetNumberOfUndoItems(&undoCount);  if (undoCount == 1)  {    if (mFirstDoOfFirstUndo)      UpdateTextInputCommands(NS_ConvertASCIItoUCS2("undo"));    mFirstDoOfFirstUndo = PR_FALSE;  }    return NS_OK;}