]> git.saurik.com Git - wxWidgets.git/commitdiff
Better capture of unicode character events
authorRobin Dunn <robin@alldunn.com>
Sat, 19 Mar 2005 22:02:25 +0000 (22:02 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 19 Mar 2005 22:02:25 +0000 (22:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/KeyEvents.py

index 87f70039b9418321dc0bdb155c9df01a70f694a7..71acdf2294801ff9d8b2be85fd775b07d1e55f84 100644 (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: