// request immediately; otherwise queue in the same burst as the
// focus event. Fixes #8321.
boolean immediate = focused
- || !client.hasEventListeners(this, EventId.FOCUS);
+ || !client.hasWidgetEventListeners(this, EventId.FOCUS);
filterOptions(-1, "", immediate);
popupOpenerClicked = true;
lastFilter = "";
handleCaptionEvent(event);
boolean stopPropagation = true;
if (event.getTypeInt() == Event.ONCONTEXTMENU
- && !client.hasEventListeners(VScrollTable.this,
- HEADER_CLICK_EVENT_ID)) {
+ && !client.hasWidgetEventListeners(
+ VScrollTable.this, HEADER_CLICK_EVENT_ID)) {
// Prevent showing the browser's context menu only when
// there is a header click listener.
stopPropagation = false;
}
boolean stopPropagation = true;
if (event.getTypeInt() == Event.ONCONTEXTMENU
- && !client.hasEventListeners(VScrollTable.this,
+ && !client.hasWidgetEventListeners(VScrollTable.this,
FOOTER_CLICK_EVENT_ID)) {
// Show browser context menu if a footer click listener is
// not present