Don't process char event if wxTranslateKeyEvent returned false.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-10-31 08:45:33 +00:00
parent 52778e0049
commit 97f8976204

View File

@@ -398,8 +398,8 @@ bool wxApp::ProcessXEvent(WXEvent* _event)
keyEvent.SetEventType(wxEVT_CHAR); keyEvent.SetEventType(wxEVT_CHAR);
// Do the translation again, retaining the ASCII // Do the translation again, retaining the ASCII
// code. // code.
wxTranslateKeyEvent(keyEvent, win, window, event, true); if (wxTranslateKeyEvent(keyEvent, win, window, event, true) &&
if (win->GetEventHandler()->ProcessEvent( keyEvent )) win->GetEventHandler()->ProcessEvent( keyEvent ))
return true; return true;
if ( (keyEvent.m_keyCode == WXK_TAB) && if ( (keyEvent.m_keyCode == WXK_TAB) &&