summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-09-09 04:19:44 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-09-09 04:19:44 (GMT)
commita9f368a5e61d1e2a73010353e66810a9b3bf7157 (patch)
tree643d0eed28db5764032fbb286a7bd070994bc0e3 /src
parenta57af1d6856ffa3a50eb1e0cdd1653b7b4ebdb41 (diff)
downloadQt-a9f368a5e61d1e2a73010353e66810a9b3bf7157.zip
Qt-a9f368a5e61d1e2a73010353e66810a9b3bf7157.tar.gz
Qt-a9f368a5e61d1e2a73010353e66810a9b3bf7157.tar.bz2
Fix bug with keypad navigation
Navigation test now passes.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/fx/qfxtextinput.cpp6
1 files 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);
}