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: return control key status #46

Open vkushnir opened 5 years ago

vkushnir commented 5 years ago

Hello. It wold be nice to know which control key is pressed with Enter (just Enter, Shift+Enter or Ctrl+Enter)

Something like:

choise = cli.launch()
if cli.lastCtrKey == Shift:
    # do some thing
else:
    return choice

or

choise = cli.launch(ctrl)
if ctrl == Shift:
    # do some thing
else:
    return choice
bchao1 commented 5 years ago

Can you be more specific on why this is a relevant feature? Eg, where this feature can be used, what problem did you encounter without this feature.