@aiwayds/dsh-opentui 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-host/index.js +3 -2
- package/package.json +1 -1
package/dist-host/index.js
CHANGED
|
@@ -743,6 +743,7 @@ function TranscriptWindow(props) {
|
|
|
743
743
|
_$setProp2(_el$18, "style", {
|
|
744
744
|
flexDirection: "column",
|
|
745
745
|
flexGrow: 1,
|
|
746
|
+
justifyContent: "flex-end",
|
|
746
747
|
padding: 1
|
|
747
748
|
});
|
|
748
749
|
_$insert2(_el$18, _$createComponent2(For2, {
|
|
@@ -1432,14 +1433,14 @@ function Select(props) {
|
|
|
1432
1433
|
}
|
|
1433
1434
|
if (n === 0)
|
|
1434
1435
|
return;
|
|
1435
|
-
if (key.name === "up") {
|
|
1436
|
+
if (key.name === "up" || key.name === "left") {
|
|
1436
1437
|
key.preventDefault?.();
|
|
1437
1438
|
const v = (index() - 1 + n) % n;
|
|
1438
1439
|
setIndex(v);
|
|
1439
1440
|
props.onPreview?.(props.items[v]?.value ?? "");
|
|
1440
1441
|
return;
|
|
1441
1442
|
}
|
|
1442
|
-
if (key.name === "down") {
|
|
1443
|
+
if (key.name === "down" || key.name === "right") {
|
|
1443
1444
|
key.preventDefault?.();
|
|
1444
1445
|
const v = (index() + 1) % n;
|
|
1445
1446
|
setIndex(v);
|