patch_for_3855.txt

Steven Mizuno, 2011-06-10 07:05 AM

Download (606 Bytes)

 
1
diff --git a/python/console.py b/python/console.py
2
index eb47f31..25302cc 100755
3
--- a/python/console.py
4
+++ b/python/console.py
5
@@ -228,7 +228,7 @@ class PythonEdit(QTextEdit, code.InteractiveInterpreter):
6
                 self.cursor.movePosition(QTextCursor.End, QTextCursor.MoveAnchor)
7
         else:
8
             # if Return is pressed, then perform the commands
9
-            if e.key() == Qt.Key_Return:
10
+            if e.key() == Qt.Key_Return or e.key() == Qt.Key_Enter:
11
                 self.entered()
12
             # if Up or Down is pressed
13
             elif e.key() == Qt.Key_Down: