From 97f897620411af15ea6b67e5c5bdd65caf34b4d5 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 31 Oct 2006 08:45:33 +0000 Subject: [PATCH] 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 --- src/x11/app.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 2d35f3b630..a7165cf5ec 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -398,8 +398,8 @@ bool wxApp::ProcessXEvent(WXEvent* _event) keyEvent.SetEventType(wxEVT_CHAR); // Do the translation again, retaining the ASCII // code. - wxTranslateKeyEvent(keyEvent, win, window, event, true); - if (win->GetEventHandler()->ProcessEvent( keyEvent )) + if (wxTranslateKeyEvent(keyEvent, win, window, event, true) && + win->GetEventHandler()->ProcessEvent( keyEvent )) return true; if ( (keyEvent.m_keyCode == WXK_TAB) && -- 2.45.2