Permalink
Browse files

Merge pull request #2714 from sisao/fixPythonChartPrompt

Fix for left and delete keypress events
  • Loading branch information...
liversedge committed Dec 6, 2017
2 parents 3a534e1 + a0cbf55 commit 99f6ac48a94d2ac2be75d36afaae67633d57b7cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Charts/PythonChart.cpp
@@ -121,7 +121,7 @@ void PythonConsole::keyPressEvent(QKeyEvent *e)
// you can only delete or move left from past first character
case Qt::Key_Left:
case Qt::Key_Backspace:
if (textCursor().position() - textCursor().block().position() > 2) QTextEdit::keyPressEvent(e);
if (textCursor().position() - textCursor().block().position() > 4) QTextEdit::keyPressEvent(e);
break;
case Qt::Key_Escape: // R typically uses ESC to cancel

0 comments on commit 99f6ac4

Please sign in to comment.