try this notice the panel does not pas wxEVT_KEY_DOWN I do not know why.
wxEVT_CHAR is gone why???
frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "Testing")
panel = wx.wxPanel(frame, wx.wxID_ANY)
frame:Show(true)
panel:Connect(wx.wxID_ANY, wx.wxEVT_CHAR,
function(event)
print('char', event, event.KeyCode)
end)
panel:Connect(wx.wxID_ANY, wx.wxEVT_KEY_DOWN,
function(event)
print('down', event, event.KeyCode)
end)
frame:Connect(wx.wxID_ANY, wx.wxEVT_KEY_DOWN,
function(event)
print('down frame', event, event.KeyCode)
event:Skip()
end)
panel:Connect(wx.wxID_ANY, wx.wxEVT_KEY_UP,
function(event)
print('up', event, event.KeyCode)
end)
------------------------------------------------------------------------------
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