reducing key event handling complexity

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-09-26 16:39:33 +00:00
parent 1d8cdcf2e3
commit 715824d58d
3 changed files with 12 additions and 17 deletions

View File

@@ -150,7 +150,6 @@ public :
virtual void UpdateLineToEnd( unsigned int n);
virtual void controlDoubleAction(WXWidget slf, void* _cmd, void *sender);
virtual bool DoHandleKeyEvent(NSEvent *event);
protected :
wxNSTableView* m_tableView ;
@@ -512,18 +511,6 @@ void wxListWidgetCocoaImpl::controlDoubleAction(WXWidget WXUNUSED(slf),void* WXU
list->HandleLineEvent( sel, true );
}
bool wxListWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event)
{
wxKeyEvent wxevent(wxEVT_KEY_DOWN);
SetupKeyEvent( wxevent, event );
wxevent.SetEventObject(GetWXPeer());
bool result = GetWXPeer()->OSXHandleKeyEvent(wxevent);
// no interpretKeyEvents here, but rerouting to native keyhandling
return result;
}
// accessing content