Menu

#3 Key Events Trouble

open
nobody
None
5
2003-12-14
2003-12-14
vineet_sc
No

Have been trying to play with the wx4j stuff. Can't
seem to get the EVT_KEY_DOWN(new OnKeyDown());
to give any response..

here's my handler:

class OnKeyDown implements wxKeyListener
{
public void handleEvent(wxKeyEvent event) {
if (event.AltDown()) {
if (event.GetKeyCode() == WXK_SPACE)
System.out.println("ALT+SPACEBAR combo
pressed");
}
}
}
}

is there a known problem here?

best

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.