tcell
tcell copied to clipboard
The Name function returns Tab for Ctrl+Tab
The Name() function returns Tab for Ctrl+Tab instead of Ctrl+Tab. This is the case for all non character keys. For example, for Ctrl+Enter the Name() function returns Enter instead of Ctrl+Enter.
https://github.com/gdamore/tcell/blob/88b9c25c3c5ee48b611dfeca9a2e9cf07812c35e/key.go#L206
Ok, the Ctrl modifier is not set. I wonder who eats the Ctrl key, is it the keyboard or terminal emulator.
Interestingly, Alt+Tab returns Alt+Tab.
Tab is kind of weird. Its actually a synonym for Control - I for legacy (as in from the 1970s or 1980s) reasons.
At some point we'll probably adopt the kitty keyboard protocol, and then at least for modern terminals things will get better.
The terminal emulator may also eat it. But I think there is no way (at least on UNIX/Linux) for control tab to be expressed.