fix(tui): add tab navigation in questions (#8777)
This commit is contained in:
@@ -198,6 +198,12 @@ export function QuestionPrompt(props: { request: QuestionRequest }) {
|
|||||||
selectTab((store.tab + 1) % tabs())
|
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 (confirm()) {
|
||||||
if (evt.name === "return") {
|
if (evt.name === "return") {
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
|
|||||||
Reference in New Issue
Block a user