[wxlua-users] Key events

2012-06-19 Thread Milind Gupta
Hi, I am trying to associate key events with a frame but it doesn't seem to be working. I am doing this: frame:Connect(ID_FRAME, wx.wxEVT_CHAR, CharKeyEvent) and then I have function CharKeyEvent(event) print(Caught Keypress) end But I never key the Caught Keypress display. Is there

Re: [wxlua-users] Key events

2012-06-19 Thread John Labenski
On Tue, Jun 19, 2012 at 2:11 PM, Milind Gupta milind.gu...@gmail.com wrote: Hi,         I am trying to associate key events with a frame but it doesn't seem to be working. I am doing this: frame:Connect(ID_FRAME, wx.wxEVT_CHAR, CharKeyEvent) You probably can't focus the frame if you have a

Re: [wxlua-users] Key events

2012-06-19 Thread Milind Gupta
Thanks John for the quick reply. I changed the connect statement to : frame:Connect(ID_FRAME, wx.wxEVT_CHAR_HOOK, CharKeyEvent) That seems to be catching all keys except the alphabets and numbers. How do I catch those? Also how do I catch key combinations like Ctrl-X? Thanks, Milind On Tue,