fixing non-unicode compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8958ad22cd
commit
a74dfdb74d
@ -1396,7 +1396,9 @@ void wxWidgetCocoaImpl::insertText(NSString* text, WXWidget slf, void *_cmd)
|
||||
wxevent.m_rawFlags = 0;
|
||||
wxevent.SetTimestamp();
|
||||
unichar aunichar = [text characterAtIndex:i];
|
||||
#if wxUSE_UNICODE
|
||||
wxevent.m_uniChar = aunichar;
|
||||
#endif
|
||||
wxevent.m_keyCode = aunichar < 0x80 ? aunichar : WXK_NONE;
|
||||
wxWindowMac* peer = GetWXPeer();
|
||||
if ( peer )
|
||||
|
Loading…
Reference in New Issue
Block a user