Better capture of unicode character events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-03-19 22:02:25 +00:00
parent f1e759d755
commit d82c254280

View File

@@ -226,7 +226,10 @@ class KeyLog(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin):
keycode = evt.GetKeyCode()
keyname = keyMap.get(keycode, None)
if keyname is None:
if "unicode" in wx.PlatformInfo and keycode < 128:
if "unicode" in wx.PlatformInfo:
keycode = evt.GetUnicodeKey()
if keycode <= 127:
keycode = evt.GetKeyCode()
keyname = "\"" + unichr(evt.GetUnicodeKey()) + "\""
elif keycode < 256: