Pass events to pushed event handlers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -414,7 +414,7 @@ bool wxApp::SendIdleEvents(wxWindow* win)
|
||||
|
||||
wxIdleEvent event;
|
||||
event.SetEventObject(win);
|
||||
win->ProcessEvent(event);
|
||||
win->GetEventHandler()->ProcessEvent(event);
|
||||
|
||||
if (event.MoreRequested())
|
||||
needMore = TRUE;
|
||||
|
@@ -308,7 +308,7 @@ bool CheckForKeyDown(XEvent* event)
|
||||
wxKeyEvent keyEvent(wxEVT_KEY_DOWN);
|
||||
wxTranslateKeyEvent(keyEvent, win, (Widget) 0, event);
|
||||
|
||||
return win->ProcessEvent( keyEvent );
|
||||
return win->GetEventHandler()->ProcessEvent( keyEvent );
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -334,7 +334,7 @@ bool CheckForKeyUp(XEvent* event)
|
||||
wxKeyEvent keyEvent(wxEVT_KEY_UP);
|
||||
wxTranslateKeyEvent(keyEvent, win, (Widget) 0, event);
|
||||
|
||||
return win->ProcessEvent( keyEvent );
|
||||
return win->GetEventHandler()->ProcessEvent( keyEvent );
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user