I probably missing something very obvious. But Google search did not show up anything relevant (so it must be sooo obvious that no one have ever had problems with it).
I derived a class from wxFrame to make a window.
I connected a key down event on it in its constructor:
Code: Select all
Connect(wxEVT_KEY_DOWN,(wxObjectEventFunction)&CrystalEditorFrame::OnKeyDown);
When I press a key while the window is active, the event simply does not fire (set a breakpoint, it's not hit). That's the story. Mouse events work.
I'm using wxGTK and wxWidgets 2.8 on Ubuntu 10.04.