bchao1 / bullet

🚅 Interactive prompts made simple. Build a prompt like stacking blocks.
https://pypi.org/project/bullet/
MIT License
3.55k stars 113 forks source link

Feature request: set a key to exit from a Check list without any selection #77

Closed marozsas closed 3 years ago

marozsas commented 3 years ago

I would like to have a way to exit from a check object pressing a exit key (ESC, "q", "x", whatever) returning a empty selection to the caller.

bchao1 commented 3 years ago

You can do this by registering a new key handling operation. See here: https://github.com/bchao1/bullet/blob/master/DOCUMENTATION.md#topic_17