if ("input".equalsIgnoreCase(getElement().getTagName()) || eventTarget.getPropertyString("__eventBits") == null) {
focus();
}
}
ComponentEvent ce = createComponentEvent(event);
ce.setEvent(event);
// browser event listeners can cancel event
if (!fireEvent(Events.BrowserEvent, ce)) {
return;
}
EventType eventType = Events.lookupBrowserEvent(type);
ce.setType(eventType);
if (type == Event.ONCONTEXTMENU) {
if (disableContextMenu) {
event.preventDefault();
}
onRightClick(ce);
}
// specialized support for mouse overs
if (overElements != null && (type == Event.ONMOUSEOVER || type == Event.ONMOUSEOUT)) {
Element target = ce.getTarget();
if (target != null) {
String style = overElements.get(target.getId());
if (style != null) {
fly(target).setStyleName(style, type == Event.ONMOUSEOVER);
}