summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxlistview.cpp')
-rw-r--r--src/declarative/fx/qfxlistview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp
index cb74910..0232717 100644
--- a/src/declarative/fx/qfxlistview.cpp
+++ b/src/declarative/fx/qfxlistview.cpp
@@ -1339,8 +1339,8 @@ void QFxListView::keyPressEvent(QKeyEvent *event)
int index = currentIndex()-1;
d->updateCurrent(index >= 0 ? index : d->model->count()-1);
event->accept();
+ return;
}
- return;
} else if ((d->orient == Qt::Horizontal && event->key() == Qt::Key_Right)
|| (d->orient == Qt::Vertical && event->key() == Qt::Key_Down)) {
if (currentIndex() < d->model->count() - 1 || d->wrap) {
@@ -1348,13 +1348,13 @@ void QFxListView::keyPressEvent(QKeyEvent *event)
int index = currentIndex()+1;
d->updateCurrent(index < d->model->count() ? index : 0);
event->accept();
+ return;
}
- return;
}
}
d->moveReason = QFxListViewPrivate::Other;
- if (!event->isAccepted())
- QFxFlickable::keyPressEvent(event);
+ event->ignore();
+ QFxFlickable::keyPressEvent(event);
}
void QFxListView::componentComplete()