]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/text/text.cpp
carbon cfm fixes
[wxWidgets.git] / samples / text / text.cpp
index 9bdf91d3036db3a101f43fb5285f44427c9d5c2a..c229d8c0a78ea40b0d3c5d74ae241badf341bb9c 100644 (file)
@@ -581,6 +581,10 @@ void MyTextCtrl::LogKeyEvent(const wxChar *name, wxKeyEvent& event) const
         }
     }
 
+#if wxUSE_UNICODE
+    key += wxString::Format(_T(" (Unicode: %#04x)"), event.GetUnicodeKey());
+#endif // wxUSE_UNICODE
+
     wxLogMessage( _T("%s event: %s (flags = %c%c%c%c)"),
                   name,
                   key.c_str(),