self.SetBackgroundColour(wx.BLUE)
self.haveFocus = False
- self.callSkip = False
+ self.callSkip = True
self.logKeyDn = True
self.logKeyUp = True
self.logChar = True
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:
cb1 = wx.CheckBox(self, -1, "Call evt.Skip in Key* events")
self.Bind(wx.EVT_CHECKBOX, self.OnSkipCB, cb1)
+ cb1.SetValue(True)
cb2 = wx.CheckBox(self, -1, "KEY_UP")
self.Bind(wx.EVT_CHECKBOX, self.OnKeyUpCB, cb2)