printf("nsXULKeyListenerImpl::Init()\n");
nsXULKeyListenerImpl::Init(  nsIDOMElement  * aElement,  nsIDOMDocument * aDocument){  printf("nsXULKeyListenerImpl::Init()\n");  element = aElement; // Weak reference. Don't addref it.  nsCOMPtr<nsIDOMXULDocument> xulDoc = do_QueryInterface(aDocument);  if (!xulDoc)    return NS_ERROR_FAILURE;  mDOMDocument = xulDoc; // Weak reference.  // Set the default for the xul key modifier#ifdef XP_MAC  mXULKeyModifier = xulKeyMeta;#elif XP_PC  mXULKeyModifier = xulKeyControl;#else  mXULKeyModifier = xulKeyAlt;#endif  return NS_OK;}