]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't process char event if wxTranslateKeyEvent returned false.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 31 Oct 2006 08:45:33 +0000 (08:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 31 Oct 2006 08:45:33 +0000 (08:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/app.cpp

index 2d35f3b63026d7da9a0b128a1178d15d3099de3f..a7165cf5ec4bf93fb828bf008bf770b959a20dfc 100644 (file)
@@ -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) &&