From a9f368a5e61d1e2a73010353e66810a9b3bf7157 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 9 Sep 2009 14:19:44 +1000 Subject: Fix bug with keypad navigation Navigation test now passes. --- src/declarative/fx/qfxtextinput.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarative/fx/qfxtextinput.cpp b/src/declarative/fx/qfxtextinput.cpp index 39a0187..6bd793b 100644 --- a/src/declarative/fx/qfxtextinput.cpp +++ b/src/declarative/fx/qfxtextinput.cpp @@ -483,11 +483,11 @@ void QFxTextInput::keyPressEvent(QKeyEvent* ev) if((d->control->cursor() == 0 && ev->key() == Qt::Key_Left) || (d->control->cursor() == d->control->text().length() && ev->key() == Qt::Key_Right)){ - //ignore moving off the end + //ignore when moving off the end ev->ignore(); - return; + }else{ + d->control->processKeyEvent(ev); } - d->control->processKeyEvent(ev); if (!ev->isAccepted()) QFxPaintedItem::keyPressEvent(ev); } -- cgit v0.12