Anonymous - 2009-10-10

Hi folks,

how do i get key events working? EVT_ KEY_DOWN(&OnKeyDown) with declaration like private void OnKeyDown(KeyEvent e) doesn't work:

calc.d:113: function wx.EvtHandler.EvtHandler.EVT_KEY_DOWN (void delegate(Object sender, Event e)) does not match parameter types (void delegate(KeyEvent e))
calc.d:113: Error: cannot implicitly convert expression (&this.OnKeyDown) of type void delegate(KeyEvent e) to void delegate(Object sender, Event e)

with private void OnKeyDown(Object sender, Event e) there aren't any problems, but the function is not executed

do you have solutions?