Rectangle {
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
color : myPalette.window;
+ function setFocus() {
+ historyList.setFocus()
+ }
signal selectedRow(int nr)
anchors.bottom: parent.bottom
anchors.top: parent.top
highlightResizeSpeed: 1000
+
+ Keys.onPressed: {
+ if ((currentIndex < 0 || currentIndex >= count) && (event.key == Qt.Key_Up || event.key == Qt.Key_Down)){
+ currentIndex = 0
+ }
+
+ if ((event.key == Qt.Key_Return || event.key == Qt.Key_Enter) && currentIndex >= 0){
+ selectedRow(currentIndex)
+ }
+ }
+
delegate: Component{
id: historyListDelegate
Item {