if (mInstance) {   aKeyEvent->PreventDefault();  nsCOMPtr<nsIDOMNSEvent> nsevent(do_QueryInterface(aKeyEvent));  if (nsevent) { nsevent->PreventBubble(); }  return NS_ERROR_FAILURE; } return NS_OK;
return DispatchKeyToPlugin(aKeyEvent);
nsresult nsPluginInstanceOwner::KeyPress(nsIDOMEvent* aKeyEvent){  if (mInstance) {    // If this event is going to the plugin, we want to kill it.    // Not actually sending keypress to the plugin, since we didn't before.    aKeyEvent->PreventDefault();    nsCOMPtr<nsIDOMNSEvent> nsevent(do_QueryInterface(aKeyEvent));    if (nsevent) {      nsevent->PreventBubble();    }    return NS_ERROR_FAILURE; // means consume event  }  return NS_OK;}