Skip to content
Permalink
Browse files

Python console: consider also Enter on keypad. Fixes #3855.

Contributed by Steven Mizuno
  • Loading branch information
wonder-sk committed Jul 5, 2011
1 parent cd6a24b commit 2fcf608acba7c3c38c532a6400c1d67a49637cd4
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/console.py
@@ -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:

0 comments on commit 2fcf608

Please sign in to comment.
You can’t perform that action at this time.