def keyPressEvent(self, event):
        """ keyPressEvent(event: QKeyEvent) -> None
        Capture 'Del', 'Backspace' for pruning versions when not editing a tag
       
        """        
        selectedItems = self.selectedItems()
        versions = [item.id for item in selectedItems 
                    if isinstance(item, QGraphicsVersionItem)
                    and not item.text.hasFocus()] 
        if (self.controller and len(versions)>0 and
            [QtCore.Qt.Key_Backspace, QtCore.Qt.Key_Delete] in event.key()):
            event.accept()
            versions = [item.id for item in selectedItems]
            res = vistrails.gui.utils.show_question("VisTrails",
                                           "Are you sure that you want to "
                                           "prune the selected version(s)?",
                                           [vistrails.gui.utils.YES_BUTTON,
                                            vistrails.gui.utils.NO_BUTTON],
                                           vistrails.gui.utils.NO_BUTTON)
            if res == vistrails.gui.utils.YES_BUTTON:
                self.controller.prune_versions(versions)
        else:
            qt_super(QVersionTreeScene, self).keyPressEvent(event)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/version_view.py/QVersionTreeScene.keyPressEvent/swapped operands of `in`