Permalink
Browse files

Fix for left and delete keypress events

  • Loading branch information...
Stefan
Stefan committed Dec 4, 2017
1 parent db3d119 commit a0cbf55a97503af934442991ba78b18426cbe850
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 a0cbf55

Please sign in to comment.