From: Stefan Csomor Date: Thu, 2 Jun 2011 08:36:57 +0000 (+0000) Subject: fixes #12867 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc710171423c158f73d0713e4cd625bf533635f9 fixes #12867 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 9bbcb2146b..ccea61277c 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -2095,9 +2095,9 @@ bool wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event) // this will fire higher level events, like insertText, to help // us handle EVT_CHAR, etc. - if ( IsUserPane() && [event type] == NSKeyDown) + if ( !result ) { - if ( !result ) + if ( IsUserPane() && [event type] == NSKeyDown) { if ( wxevent.GetKeyCode() < WXK_SPACE || wxevent.GetKeyCode() == WXK_DELETE || wxevent.GetKeyCode() >= WXK_START ) {