1
0
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:
kvnxiao 2020-02-29 18:06:55 -05:00
parent 5f5aff3a94
commit 2f2b13d319

View File

@ -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{