if (aEventType != mEventName.get()) { *aResult = PR_FALSE; return NS_OK;
return KeyEventMatched(aEvent);
nsXBLPrototypeHandler::KeyEventMatched(nsIAtom* aEventType, nsIDOMKeyEvent* aKeyEvent, PRBool* aResult){  *aResult = PR_TRUE;  if (aEventType != mEventName.get()) {    *aResult = PR_FALSE;    return NS_OK;  }  if (mDetail == -1 && mMisc == 0 && mKeyMask == 0)    return NS_OK; // No filters set up. It's generic.  // Get the keycode and charcode of the key event.  PRUint32 keyCode, charCode;  aKeyEvent->GetKeyCode(&keyCode);  aKeyEvent->GetCharCode(&charCode);  PRBool keyMatched = (mDetail == PRInt32(mMisc ? charCode : keyCode));  if (!keyMatched) {    *aResult = PR_FALSE;    return NS_OK;  }  // Now check modifier keys  PRBool result = ModifiersMatchMask(aKeyEvent);  *aResult = result;  return NS_OK;}