mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-25 13:48:50 +08:00
Add event.Name() to keyboard key error message
This commit is contained in:
parent
5f5aff3a94
commit
2f2b13d319
@ -98,7 +98,7 @@ func convKey(event *tcell.EventKey) terminalapi.Event {
|
||||
|
||||
k, ok := tcellToTd[tcellKey]
|
||||
if !ok {
|
||||
return terminalapi.NewErrorf("unknown keyboard key '%v' in a keyboard event", tcellKey)
|
||||
return terminalapi.NewErrorf("unknown keyboard key '%v' in a keyboard event %v", tcellKey, event.Name())
|
||||
}
|
||||
|
||||
return &terminalapi.Keyboard{
|
||||
|
Loading…
x
Reference in New Issue
Block a user