31 lines
754 B
Diff
31 lines
754 B
Diff
From 5112aff7efb7c2bc74fbe1eb41bc286c37fd706c Mon Sep 17 00:00:00 2001
|
|
From: Vishesh Handa <me@vhanda.in>
|
|
Date: Mon, 20 Oct 2014 13:09:43 +0200
|
|
Subject: [PATCH 1/3] ResultsView: Handle both Enter and Return
|
|
|
|
BUG: 339628
|
|
---
|
|
lib/qml/ResultsView.qml | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/lib/qml/ResultsView.qml b/lib/qml/ResultsView.qml
|
|
index d962703..bbb452a 100644
|
|
--- a/lib/qml/ResultsView.qml
|
|
+++ b/lib/qml/ResultsView.qml
|
|
@@ -77,6 +77,12 @@ ListView {
|
|
}
|
|
runCurrentIndex();
|
|
}
|
|
+ Keys.onEnterPressed: {
|
|
+ if (!currentIndex) {
|
|
+ runAutomatically = true
|
|
+ }
|
|
+ runCurrentIndex();
|
|
+ }
|
|
|
|
function runCurrentIndex() {
|
|
listView.model.run(currentIndex);
|
|
--
|
|
2.1.2
|
|
|