Hello Tobi,
Unfortunately, JExplorer API doesn't allow to do this yet. But you can receive key code using the following way:
browser.getDocument().getBody().addEventListener("onkeypress", new EventListener()
{
public void handleEvent(Event evt)
{
if (evt instanceof UIEvent) {
int keyCode = ((UIEvent) evt).getDetail();
System.out.println("keyCode = " + keyCode);
}
}
}, false);
We will investigate such ability to add KeyEventListener for HTML element and maybe we will implement this in one of the next version of JExplorer.
Regards,
Vladimir