public void onBrowserEvent(Event event) {
System.out.println("event "+event.getType());
if (DOM.eventGetType(event) == Event.ONCONTEXTMENU) {
// this works
} else if (DOM.eventGetType(event) == Event.ONKEYPRESS) {
// never get anything
} else {
super.onBrowserEvent(event); // get all the mouse events
}
}
I also tried sinking Event.ONKEYPRESS. same result.