Ejemplo n.º 1
0
bool CQuickConnect::OnIPEditBoxKeyUp(const CEGUI::EventArgs &eventArgs)
{
        const CEGUI::KeyEventArgs& key_args = static_cast<const CEGUI::KeyEventArgs&>(eventArgs);
        if(key_args.scancode == CEGUI::Key::Return) {
                OnSubmit();
                return true;
        }
        return true;
}
Ejemplo n.º 2
0
void
nsIsIndexFrame::KeyPress(nsIDOMEvent* aEvent)
{
  nsCOMPtr<nsIDOMKeyEvent> keyEvent = do_QueryInterface(aEvent);
  if (keyEvent) {
    PRUint32 code;
    keyEvent->GetKeyCode(&code);
    if (code == 0) {
      keyEvent->GetCharCode(&code);
    }
    if (nsIDOMKeyEvent::DOM_VK_RETURN == code) {
      OnSubmit(PresContext());
      aEvent->PreventDefault(); // XXX Needed?
    }
  }
}
Ejemplo n.º 3
0
void CTblInfoView::OnDel()
{
    static CListCtrl &ctrl = GetListCtrl();
    int nItem = ctrl.GetSelectionMark();
    if (-1 == nItem)
    {
        AfxMessageBox("请选中行操作");
        return;
    }

    m_Operation = INFO_TYPE_DEL;

	//should not do this until submitted
    //ctrl.DeleteItem(nItem);

    OnSubmit();      
}
Ejemplo n.º 4
0
bool CQuickConnect::OnConnectButtonClick(const CEGUI::EventArgs &eventArgs)
{
        OnSubmit();
        return true;
}