Skip to content

Fix Ctrl+C behavior in BTW composer#13

Merged
dbachelder merged 2 commits into
mainfrom
fix-btw-ctrl-c-clear
Apr 30, 2026
Merged

Fix Ctrl+C behavior in BTW composer#13
dbachelder merged 2 commits into
mainfrom
fix-btw-ctrl-c-clear

Conversation

@dbachelder

Copy link
Copy Markdown
Owner

Summary

  • handle app.clear before tui.select.cancel in the BTW composer
  • clear non-empty BTW input on Ctrl+C instead of dismissing the overlay
  • preserve existing Ctrl+C-on-empty and Escape/select-cancel dismissal behavior

Fixes #12

Testing

  • npm test
  • npx tsc --noEmit

@dbachelder dbachelder merged commit aff4c16 into main Apr 30, 2026
1 check passed
@dbachelder dbachelder deleted the fix-btw-ctrl-c-clear branch April 30, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ctrl+C in BTW composer dismisses the overlay instead of clearing the input line

1 participant