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; }
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? } } }
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(); }
bool CQuickConnect::OnConnectButtonClick(const CEGUI::EventArgs &eventArgs) { OnSubmit(); return true; }