nsevent->GetPreventDefault(&defaultPrevented);
uievent->GetPreventDefault(&defaultPrevented);
DOMEventToNativeKeyEvent(nsIDOMEvent      *aDOMEvent,                         nsNativeKeyEvent *aNativeEvent){  nsCOMPtr<nsIDOMNSUIEvent> nsevent = do_QueryInterface(aDOMEvent);  PRBool defaultPrevented;  nsevent->GetPreventDefault(&defaultPrevented);  if (defaultPrevented)    return PR_FALSE;  nsCOMPtr<nsIDOMKeyEvent> keyEvent = do_QueryInterface(aDOMEvent);  keyEvent->GetCharCode(&aNativeEvent->charCode);  keyEvent->GetKeyCode(&aNativeEvent->keyCode);  keyEvent->GetAltKey(&aNativeEvent->altKey);  keyEvent->GetCtrlKey(&aNativeEvent->ctrlKey);  keyEvent->GetShiftKey(&aNativeEvent->shiftKey);  keyEvent->GetMetaKey(&aNativeEvent->metaKey);  return PR_TRUE;}