PRBool   OnKey(nsKeyEvent &aEvent)         { return OnInput(aEvent); };
PRBool nsWidget::OnKey(nsKeyEvent &aEvent) {  PRBool    ret = PR_FALSE; PRBool    releaseWidget = PR_FALSE; nsWidget *widget = nsnull;   if (sFocusWindow) { widget = sFocusWindow; NS_ADDREF(widget); aEvent.widget = sFocusWindow; releaseWidget = PR_TRUE; } if (mEventCallback) {   if (IsContextMenuKey(aEvent)) { nsMouseEvent contextMenuEvent; ConvertKeyEventToContextMenuEvent(&aEvent, &contextMenuEvent); ret = DispatchWindowEvent(&contextMenuEvent); } else ret = DispatchWindowEvent(&aEvent); }  if (releaseWidget) NS_RELEASE(widget);  return ret; }
  PRBool   OnKey(nsKeyEvent &aEvent)         { return OnInput(aEvent); };