final Element target = event.getTarget().cast();
if (!DOM.isOrHasChild(getElement(), target)) {
// not within the modal window, but let's see if it's in the
// debug window
Console console = ApplicationConnection.getConsole();
if (console instanceof VDebugConsole
&& DOM.isOrHasChild(((VDebugConsole) console)
.getElement(), target)) {
return true; // allow debug-window clicks
}