X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38f7d8013a2274f43dbbd578b953b9f7514342ba..6a52ea5cb81dcd07c286d34b80945534780fe05f:/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: