Implemented a little change that hopefully fixes an issue handling an Enter press in the Goto dialog. eric7

Fri, 29 Apr 2022 09:31:46 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 29 Apr 2022 09:31:46 +0200
branch
eric7
changeset 9036
58dabebbe022
parent 9035
d3a640642179
child 9037
907540e4f741
child 9041
4f598360a94a

Implemented a little change that hopefully fixes an issue handling an Enter press in the Goto dialog.

eric7/QScintilla/GotoDialog.py file | annotate | diff | comparison | revisions
--- 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())
         

eric ide

mercurial