Browse Source

bug fix: JavaScript console loop in the right order

cl-refactor
yann300 10 years ago
parent
commit
0e205f0d55
  1. 14
      mix/qml/WebPreview.qml

14
mix/qml/WebPreview.qml

@ -377,7 +377,7 @@ Item {
font.italic: true
font.pointSize: appStyle.absoluteSize(-3)
anchors.verticalCenter: parent.verticalCenter
property bool active: false
property var history: []
property int index: -1
@ -394,12 +394,20 @@ Item {
expressionInput.text = history[index];
}
onTextChanged: {
active = text !== "";
if (!active)
index = -1;
}
Keys.onDownPressed: {
displayCache(1);
if (active)
displayCache(-1);
}
Keys.onUpPressed: {
displayCache(-1);
displayCache(1);
active = true;
}
Keys.onEnterPressed:

Loading…
Cancel
Save