wxQT: Add guard to wxWindowQt for building without unicode support
Thanks @seandepagnier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1164,10 +1164,12 @@ bool wxWindowQt::QtHandleKeyEvent ( QWidget *WXUNUSED( handler ), QKeyEvent *eve
|
||||
// TODO: m_x, m_y
|
||||
e.m_keyCode = wxQtConvertKeyCode( event->key(), event->modifiers() );
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
if ( event->text().isEmpty() )
|
||||
e.m_uniChar = 0;
|
||||
else
|
||||
e.m_uniChar = event->text().at( 0 ).unicode();
|
||||
#endif // wxUSE_UNICODE
|
||||
|
||||
e.m_rawCode = event->nativeVirtualKey();
|
||||
e.m_rawFlags = event->nativeModifiers();
|
||||
|
Reference in New Issue
Block a user