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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user