aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/TerminalList.qml2
-rw-r--r--qml/commands.js4
2 files changed, 5 insertions, 1 deletions
diff --git a/qml/TerminalList.qml b/qml/TerminalList.qml
index 249193d..fe89be5 100644
--- a/qml/TerminalList.qml
+++ b/qml/TerminalList.qml
@@ -58,7 +58,7 @@ Item {
children[activeItem].deselect();
children[index ].select();
- activeItem = index;
+ activeItem = typeof index === "number" ? index : parseInt(index);
scrollTo(index);
}
diff --git a/qml/commands.js b/qml/commands.js
index ee13a1b..9b4d8de 100644
--- a/qml/commands.js
+++ b/qml/commands.js
@@ -17,3 +17,7 @@ function next() {
function prev() {
terminalList.selectPrev();
}
+
+function jump(index) {
+ terminalList.selectItem(index);
+}