Commit 078fbba4 authored by Aurindam Jana's avatar Aurindam Jana

QmlConsole: Fixes navigation issue with right arrow key

When the cursor is just before the first element, the right key
did not work.

Change-Id: I0a00b0593d4a6450311253cc021c70a64f75b456
Reviewed-by: default avatarKai Koehne <>
parent 23fd6730
......@@ -135,7 +135,7 @@ void QmlConsoleEdit::keyPressEvent(QKeyEvent *e)
// Right: Moves the cursor one character to the right.
case Qt::Key_Right:
if ( !(e->modifiers() & Qt::ControlModifier)
&& textCursor().position() <= m_startOfEditableArea) {
&& textCursor().position() < m_startOfEditableArea) {
QTextCursor c(textCursor());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment