def onEventPreview(self, event):
        type = DOM.eventGetType(event)
        if type is not "click":
            target = DOM.eventGetTarget(event)
            parentMenuElement = self.item.getElement()
            if DOM.isOrHasChild(parentMenuElement, target):
                if self.item.onBrowserEvent(event):
                    self.hide()
                return True

        return PopupPanel.onEventPreview(self, event)
dataset/ETHPy150Open anandology/pyjamas/library/gwt/ui/ContextMenuPopupPanel.py/ContextMenuPopupPanel.onEventPreview/operator `==` -> `is not`