diff -r 27f636beebad -r 2c730d5fd177 eric6/QScintilla/DocstringGenerator/BaseDocstringGenerator.py --- a/eric6/QScintilla/DocstringGenerator/BaseDocstringGenerator.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/QScintilla/DocstringGenerator/BaseDocstringGenerator.py Tue Mar 02 17:17:09 2021 +0100 @@ -225,7 +225,7 @@ @type QKeyEvent """ key = evt.key() - if key not in (Qt.Key_Enter, Qt.Key_Return): + if key not in (Qt.Key.Key_Enter, Qt.Key.Key_Return): self.__editor.keyPressEvent(evt) self.close() else: