Milind Gupta <milind.gupta@...> writes:
>
>
> 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
>
>
Try this
---------------------
frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "Testing")
frame:Show(true)
frame:Connect(wx.wxID_ANY, wx.wxEVT_CHAR,
function(event)
print(event, event.KeyCode)
end)
---------------------
Seems to work.
Andre
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users