]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textcmn.cpp
Warning fixes, source cleaning.
[wxWidgets.git] / src / common / textcmn.cpp
index b10efe0e78a089fd122f27dd32cf51cef9ef39f0..b31c830a00756b04ec072e8d149995762e1049c0 100644 (file)
@@ -411,6 +411,13 @@ bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event)
             break;
 
         default:
+#if wxUSE_UNICODE
+            if ( event.GetUnicodeKey() )
+            {
+                ch = event.GetUnicodeKey();
+            }
+            else
+#endif
             if ( keycode < 256 && keycode >= 0 && wxIsprint(keycode) )
             {
                 // FIXME this is not going to work for non letters...