using native key handling, closes #10406

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-09-25 18:53:38 +00:00
parent 81eaa4dab2
commit f4c24d3da4

View File

@@ -150,6 +150,8 @@ 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 ;
@@ -510,6 +512,18 @@ void wxListWidgetCocoaImpl::controlDoubleAction(WXWidget WXUNUSED(slf),void* WXU
list->HandleLineEvent( sel, true );
}
bool wxWidgetCocoaImpl::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