--- a/eric7/QScintilla/GotoDialog.py Wed Apr 27 14:15:51 2022 +0200 +++ b/eric7/QScintilla/GotoDialog.py Fri Apr 29 09:31:46 2022 +0200 @@ -7,7 +7,7 @@ Module implementing the Goto dialog. """ -from PyQt6.QtWidgets import QDialog +from PyQt6.QtWidgets import QDialog, QDialogButtonBox from .Ui_GotoDialog import Ui_GotoDialog @@ -36,6 +36,9 @@ self.linenumberSpinBox.setValue(curLine) self.linenumberSpinBox.selectAll() + self.buttonBox.button( + QDialogButtonBox.StandardButton.Ok).setDefault(True) + msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height())