manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.07k stars 336 forks source link

Added 'q' as a key to cancel the select prompt. #223

Closed okira-e closed 10 months ago

okira-e commented 1 year ago

I added a new entry in SelectKeys & setKeys() for a q to be a cancel key.

Currently, exiting can only be done via a Ctrl+c interrupt that returns goroutine errors. A graceful exit key is desirable.