summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@digia.com>2013-03-05 10:57:37 +0100
committerAurindam Jana <aurindam.jana@digia.com>2013-03-05 14:06:40 +0100
commit078fbba42924497d381def8d34e91945e2a40e55 (patch)
tree2d18d3f64dac26d01c09a2d3d4bb7ac7492b3c19 /src
parent23fd6730fa40a3224beecef199754f53cf2a705f (diff)
downloadqt-creator-078fbba42924497d381def8d34e91945e2a40e55.tar.gz
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: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qmljstools/qmlconsoleedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljstools/qmlconsoleedit.cpp b/src/plugins/qmljstools/qmlconsoleedit.cpp
index 9793abc190..7c13b0bc67 100644
--- a/src/plugins/qmljstools/qmlconsoleedit.cpp
+++ b/src/plugins/qmljstools/qmlconsoleedit.cpp
@@ -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());
c.setPosition(m_startOfEditableArea);
setTextCursor(c);