Skip to content

Commit

Permalink
Python console: consider also Enter on keypad. Fixes #3855.
Browse files Browse the repository at this point in the history
Contributed by Steven Mizuno
  • Loading branch information
wonder-sk committed Jul 5, 2011
1 parent cd6a24b commit 2fcf608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/console.py
Expand Up @@ -228,7 +228,7 @@ def keyPressEvent(self, e):
self.cursor.movePosition(QTextCursor.End, QTextCursor.MoveAnchor)
else:
# if Return is pressed, then perform the commands
if e.key() == Qt.Key_Return:
if e.key() == Qt.Key_Return or e.key() == Qt.Key_Enter:
self.entered()
# if Up or Down is pressed
elif e.key() == Qt.Key_Down:
Expand Down

0 comments on commit 2fcf608

Please sign in to comment.