[PR #11476] feat(tui): space to toggle answers in multi-select and enter for submit in questions tool #13805

Open
opened 2026-02-16 18:18:38 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11476

State: open
Merged: No


What does this PR do?

Updates multi-select in questions tool to use "space" to toggle answers while keeping "enter" as the submit action, for a more natural and consistent keyboard flow.

How did you verify your code works?

Tested locally while by invoking the questions tool and verified that "space" toggles answers and "enter" submits as expected. (I have attached a screen recording)

UX note

I am aware that this changes the existing behavior where users may expect "enter" to toggle answers but this will submit it, however this should not be a major issue as answers are not just sent immediately and there is a confirmation step at the end (which shows warning of empty answer).

Since using "space" to toggle options is a common pattern in TUIs and CLIs, this should be fairly easy for users to adapt and fits better with people who already enjoy terminal apps.

screen recording of the fix applied in this PR

https://github.com/user-attachments/assets/6d697e86-8bd9-4b6a-b4a1-2d96d1618f63

closes #11471

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11476 **State:** open **Merged:** No --- ### What does this PR do? Updates multi-select in questions tool to use "space" to toggle answers while keeping "enter" as the submit action, for a more natural and consistent keyboard flow. ### How did you verify your code works? Tested locally while by invoking the questions tool and verified that "space" toggles answers and "enter" submits as expected. (I have attached a screen recording) ### UX note I am aware that this changes the existing behavior where users may expect "enter" to toggle answers but this will submit it, however this should not be a major issue as answers are not just sent immediately and there is a confirmation step at the end (which shows warning of empty answer). Since using "space" to toggle options is a common pattern in TUIs and CLIs, this should be fairly easy for users to adapt and fits better with people who already enjoy terminal apps. *screen recording of the fix applied in this PR* https://github.com/user-attachments/assets/6d697e86-8bd9-4b6a-b4a1-2d96d1618f63 closes #11471
yindo added the pull-request label 2026-02-16 18:18:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13805