X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38f7d8013a2274f43dbbd578b953b9f7514342ba..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/demo/KeyEvents.py?ds=inline diff --git a/wxPython/demo/KeyEvents.py b/wxPython/demo/KeyEvents.py index 87f70039b9..71acdf2294 100644 --- a/wxPython/demo/KeyEvents.py +++ b/wxPython/demo/KeyEvents.py @@ -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: