X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fqml%2FWordListWidget.qml;h=e4168f9766bcddb8a6215d839c0d90ee28518231;hb=9a5bedfd71b6c1a09fe77aea909d3d78a771a6e8;hp=4cd5f97a78dbc91f71614cf289383000fb18f368;hpb=11ada56e37ed724c4777ad2ac555eabe19c65c12;p=mdictionary diff --git a/src/mdictionary/qml/WordListWidget.qml b/src/mdictionary/qml/WordListWidget.qml index 4cd5f97..e4168f9 100644 --- a/src/mdictionary/qml/WordListWidget.qml +++ b/src/mdictionary/qml/WordListWidget.qml @@ -59,6 +59,9 @@ Rectangle { property bool empty: false Keys.onPressed: { + if ((currentIndex < 0 || currentIndex >= count) && (event.key == Qt.Key_Up || event.key == Qt.Key_Down)){ + currentIndex = 0 + } if (event.key == Qt.Key_Space && currentIndex >= 0){ rectangle1.changeWordStateByIndex(); } else if ((event.key == Qt.Key_Return || event.key == Qt.Key_Enter) && currentIndex >= 0){