git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26731
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
OSStatus result = eventNotHandledErr ;
+ wxTopLevelWindow* tlw = (wxTopLevelWindow*) data ;
+
wxWindow* focus = wxWindow::FindFocus() ;
+ if ( focus == NULL )
+ return result ;
+
char charCode ;
UInt32 keyCode ;
UInt32 modifiers ;
if ( button == kEventMouseButtonSecondary )
{
if (cEvent.GetKind() == kEventMouseDown )
- wxevent.SetEventType( clickCount > 1 ? wxEVT_RIGHT_DOWN : wxEVT_RIGHT_DCLICK ) ;
+ wxevent.SetEventType( clickCount > 1 ? wxEVT_RIGHT_DCLICK : wxEVT_RIGHT_DOWN ) ;
else if ( cEvent.GetKind() == kEventMouseUp )
wxevent.SetEventType(wxEVT_RIGHT_UP ) ;
}