Pls add support shift+tab
See original GitHub issueI want use shift tab in inquirer. But readchar not read this keyevent
print("Press a key")
key = readchar.readkey()
print("Key is {0}".format(key.encode()))
>>>Press a key
>>>shift+tab
>>>Key is b'\t'
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
what is the key code for shift+tab? - javascript
The problem is that when I press the TAB button down it navigates to the next input field. But, what is the JavaScript...
Read more >Drafts: Setup Tab / Shift-Tab Indentation Shortcuts - YouTube
Drafts: Setup Tab / Shift - Tab Indentation Shortcuts. 1.1K views 1 year ago. Agile Tortoise Support. Agile Tortoise Support.
Read more >Steam: Enable/Disable/Change keys - Steam Overlay - YouTube
This super basic tutorial takes you through the steps of disabling/enabling the Steam Overlay, as well as changing it from the default Shift...
Read more >Keyboard shortcuts
Move the focus to each command on the ribbon, forward or backward respectively. TAB, SHIFT+TAB. Move down, up, left, or right among the...
Read more >Ctrl+tab to shift between tabs · Issue #4795
I would like to shift between tabs by typing Ctrl+tab, the same way I ... Can you please add support for Ctrl +...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For *nix support
This 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
key
-module for unix systems with this line after yourreadchar
import:Now you can use it as expected:
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:
readchar
relies on the standart libarymsvcrt
to do the actuall terminal interaction. If you take this exapmple:you will see that both pressing
TAB
andSHIFT+TAB
result in the same output ofb'\t'
. Windows doesn’t provide this keycombination to python so it is imposible to handle it.It’s work with inquirer https://github.com/magmax/python-inquirer/pull/170