*/
public void handleEvent(Event e) {
boolean matched;
if (e.getType().charAt(3) == 'p') {
// DOM 2 key draft keypress
DOMKeyEvent evt = (DOMKeyEvent) e;
matched = evt.getCharCode() == accesskey;
} else {
// DOM 3 keydown
KeyboardEvent evt = (KeyboardEvent) e;
matched = evt.getKeyIdentifier().equals(keyName);
}
if (matched) {
owner.eventOccurred(this, e);
}
}