Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: return control key status #46

Open
vkushnir opened this issue Jul 4, 2019 · 1 comment
Open

feature request: return control key status #46

vkushnir opened this issue Jul 4, 2019 · 1 comment

Comments

@vkushnir
Copy link

vkushnir commented Jul 4, 2019

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
Copy link
Owner

bchao1 commented Aug 4, 2019

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.

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

No branches or pull requests

2 participants