From: Andre A. <ar...@ki...> - 2012-06-21 12:13:07
|
-- Could this be tried on unix -- Type an 'a'. Enable caps lock and type another 'a' -- is the keycode 65 in both cases. -- Note: There does not seem to be any way to find out if 'a' is capitalize. -- You get a transition code for caps but you do not know -- if its going up or down. frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "Testing") frame:Connect(wx.wxID_ANY, wx.wxEVT_CHAR_HOOK, function(event) print(event.KeyCode) end) frame:Show() |