fix(tui): add tab navigation in questions (#8777)

pull/6154/merge
Kit Langton 2026-01-15 20:38:11 -05:00 committed by GitHub
parent 5092b5f07b
commit 07e7ebdb8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,12 @@ export function QuestionPrompt(props: { request: QuestionRequest }) {
selectTab((store.tab + 1) % tabs())
}
if (evt.name === "tab") {
evt.preventDefault()
const direction = evt.shift ? -1 : 1
selectTab((store.tab + direction + tabs()) % tabs())
}
if (confirm()) {
if (evt.name === "return") {
evt.preventDefault()