def eventFilter(self, widget, event):
        # keeps the QMenuBar from stealing the focus if the user
        # presses ALT
        if (widget is self or event.type() == QEvent.ShortcutOverride and\
                event.key() == Qt.Key_Alt and event.modifiers() == Qt.AltModifier):
            event.accept()
        return QsciScintilla.eventFilter(self, widget, event)
dataset/ETHPy150Open thiago-silva/memetalk/proto3/scintilla_editor.py/MemeQsciScintilla.eventFilter/operator `and` -> `or`