Просмотр исходного кода

fix(tui): fix broken /export toggling (#16443)

Nate Williams 6 месяцев назад
Родитель
Сommit
5b5b791d75
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/opencode/src/cli/cmd/tui/ui/dialog-export-options.tsx

+ 1 - 1
packages/opencode/src/cli/cmd/tui/ui/dialog-export-options.tsx

@@ -56,7 +56,7 @@ export function DialogExportOptions(props: DialogExportOptionsProps) {
       setStore("active", order[nextIndex])
       evt.preventDefault()
     }
-    if (evt.name === "space") {
+    if (evt.name === "space" || evt.name === " ") {
       if (store.active === "thinking") setStore("thinking", !store.thinking)
       if (store.active === "toolDetails") setStore("toolDetails", !store.toolDetails)
       if (store.active === "assistantMetadata") setStore("assistantMetadata", !store.assistantMetadata)