X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fqml%2FDictTypeSelectDialog.qml;h=288b1a921be856ec92bb00956d7efe749bf7ad90;hb=ebd4c2c97364e18aae17e790155b8f4060981c37;hp=ac20bfe4072af1fffd63ff53e3e141854d665327;hpb=08e403fb8f97d1352819f64d81eeda2c65148a40;p=mdictionary diff --git a/src/mdictionary/qml/DictTypeSelectDialog.qml b/src/mdictionary/qml/DictTypeSelectDialog.qml index ac20bfe..288b1a9 100644 --- a/src/mdictionary/qml/DictTypeSelectDialog.qml +++ b/src/mdictionary/qml/DictTypeSelectDialog.qml @@ -27,12 +27,21 @@ import Qt 4.7 Rectangle { SystemPalette { id: myPalette; colorGroup: SystemPalette.Active } signal selectedRow(int nr) + function setFocus() { + dictTypeList.setFocus() + } id: rectangle1 color: myPalette.base anchors.fill: parent ElementsListView{ + Keys.onPressed: { + if ((event.key == Qt.Key_Return || event.key == Qt.Key_Enter) && currentIndex >= 0){ + selectedRow(currentIndex) + } + } + id: dictTypeList width: rectangle1.width height: rectangle1.height