Skip to content

Commit 2fcf608

Browse files
committed
Python console: consider also Enter on keypad. Fixes #3855.
Contributed by Steven Mizuno
1 parent cd6a24b commit 2fcf608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/console.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def keyPressEvent(self, e):
228228
self.cursor.movePosition(QTextCursor.End, QTextCursor.MoveAnchor)
229229
else:
230230
# if Return is pressed, then perform the commands
231-
if e.key() == Qt.Key_Return:
231+
if e.key() == Qt.Key_Return or e.key() == Qt.Key_Enter:
232232
self.entered()
233233
# if Up or Down is pressed
234234
elif e.key() == Qt.Key_Down:

0 commit comments

Comments
 (0)