-
Notifications
You must be signed in to change notification settings - Fork 47
Pls add support shift+tab #80
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
Comments
You didn't provide this crutial information, but from the fact that you only get a single Windows doesn't modify the tab-key when pressing shift, it always just reads We could add it to the Linux side, but I would still not recomend using it as it is not portable... |
I'm use macos. It’s a pity that it won’t work for Windows, of course I want a cross-platform implementation. But support for *nix would also be nice. |
For *nix supportThis will have to wait but will probably come at some point. For now the project maintainer is not responding and untill he does I am just a powerless contributer myself. You can however, for the ime beeing, patch the from readchar import readkey, key
key.SHIFT_TAB = "\x1b\x5b\x5a" Now you can use it as expected: while True:
k = readkey()
if k == key.SHIFT_TAB:
print("got macro shortcut!!!!!") You can get the codes for other unsported keys by running my testing script, it will print you the codes for all pressed keys. For windows support:
from msvcrt import getch
while True:
k = getch()
print(k) you will see that both pressing |
Thanks for your answer. I found why I can't use readchar.readkey(), it's #11 problem. Pycharm terminal != system terminal. In system macos term i can read shift+tab. |
It's work with inquirer magmax/python-inquirer#170 |
I want use shift tab in inquirer. But readchar not read this keyevent
The text was updated successfully, but these errors were encountered: