gdamore/tcell

The Name function returns Tab for Ctrl+Tab

m-kru opened this issue · 2 comments

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.

tcell/key.go

Line 206 in 88b9c25

func (ev *EventKey) Name() string {

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.