'Reimplement Qt Method - Basic keypress event handler'

def keyPressEvent(self, event):

    (event, text, key, ctrl, shift) = restore_keyevent(event)
    if ((key == Qt.Key_ParenLeft) and (not self.has_selected_text()) and self.help_enabled and (not self.parent()._reading)):
        self._key_paren_left(text)
    else:
        QTextEdit.keyPressEvent(self, event)
