@aiwayds/dsh-opentui 0.4.2 → 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.
@@ -1433,14 +1433,14 @@ function Select(props) {
1433
1433
  }
1434
1434
  if (n === 0)
1435
1435
  return;
1436
- if (key.name === "up") {
1436
+ if (key.name === "up" || key.name === "left") {
1437
1437
  key.preventDefault?.();
1438
1438
  const v = (index() - 1 + n) % n;
1439
1439
  setIndex(v);
1440
1440
  props.onPreview?.(props.items[v]?.value ?? "");
1441
1441
  return;
1442
1442
  }
1443
- if (key.name === "down") {
1443
+ if (key.name === "down" || key.name === "right") {
1444
1444
  key.preventDefault?.();
1445
1445
  const v = (index() + 1) % n;
1446
1446
  setIndex(v);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwayds/dsh-opentui",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dsh-opentui": "bin/dsh-opentui.mjs"