I can bind an event to a textctrl box np. The problem is I have to be clicked inside of the textctrl box to \"catch\" this event. I am hoping to be able to catch anytime someo
Instead try binding to wx.EVT_CHAR_HOOK
wx.EVT_CHAR_HOOK
e.g..
self.Bind(wx.EVT_CHAR_HOOK, self.onKey) ... def onKey(self, evt): if evt.GetKeyCode() == wx.WXK_DOWN: print "Down key pressed" else: evt.Skip()