aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-07-01 21:09:23 +0200
committerAdrian Kummerlaender2015-07-01 21:09:23 +0200
commit2c768162da03d91e37d84210eec0b9fdc9e7e20e (patch)
treec57ea0ab2dbd9fca4f77328ee9542d1eb44d16f3
parente88b7284bf6ddb21a19f9a7410a3620401e1d1db (diff)
downloadMetaTerm-2c768162da03d91e37d84210eec0b9fdc9e7e20e.tar
MetaTerm-2c768162da03d91e37d84210eec0b9fdc9e7e20e.tar.gz
MetaTerm-2c768162da03d91e37d84210eec0b9fdc9e7e20e.tar.bz2
MetaTerm-2c768162da03d91e37d84210eec0b9fdc9e7e20e.tar.lz
MetaTerm-2c768162da03d91e37d84210eec0b9fdc9e7e20e.tar.xz
MetaTerm-2c768162da03d91e37d84210eec0b9fdc9e7e20e.tar.zst
MetaTerm-2c768162da03d91e37d84210eec0b9fdc9e7e20e.zip
Enter insert mode when list end is hit repeatedly
-rw-r--r--MetaTerm.qml14
1 files changed, 8 insertions, 6 deletions
diff --git a/MetaTerm.qml b/MetaTerm.qml
index 7618594..36728ae 100644
--- a/MetaTerm.qml
+++ b/MetaTerm.qml
@@ -9,11 +9,16 @@ Rectangle {
color: "#161616"
+ Component.onCompleted: terminalList.focusItem()
+
Flickable {
id: terminalListFlickable
- boundsBehavior: Flickable.StopAtBounds
anchors.fill: parent
+ boundsBehavior: Flickable.StopAtBounds
+ contentHeight: terminalList.height
+ contentWidth: terminalList.width
+
Column {
id: terminalList
spacing: 10
@@ -40,6 +45,8 @@ Rectangle {
if ( activeItem < (children.length - 1) ) {
children[ activeItem].deselect();
children[++activeItem].select();
+ } else {
+ insertTerminalAction.trigger();
}
}
@@ -63,9 +70,6 @@ Rectangle {
onExecuted: terminalList.createItem()
}
}
-
- contentHeight: terminalList.height
- contentWidth: terminalList.width
}
Action {
@@ -114,6 +118,4 @@ Rectangle {
flickable: terminalListFlickable
handleSize: 10
}
-
- Component.onCompleted: terminalList.focusItem()
}