Closed spacez320 closed 6 months ago
Thank you for reporting this @spacez320. Termdash has an intermediate terminalapi layer that allows its users to switch between different implementations (tcell Vs. termbox).
It is in this layer that keys are processed and mapped from specific implementations to Termdash implementation. Looks like all we need to do is support mapping of backtab
and maybe a few additional events that were added in the meantime. The support should be added here.
Is this something you would be interested in contributing?
@mum4k Thanks for the response. I'd be happy to contribute this. Let me know if there's a time table, but otherwise should be able to report back soon.
Thank you @spacez320, no rush - I don't keep any regular release schedule for Termdash. We can tag a new version once we have your PR in.
Thank you for your help!
Thanks @mum4k . I have a PR here: https://github.com/mum4k/termdash/pull/362, let me know how it looks.
I didn't touch termbox (it didn't seem tab was really used in that library?), let me know if I should or if I missed some events I should have implemented, or anything else.
Pressing the 'backtab' key (a.k.a. Shift + Tab) throws an error in Termdash.
This is a supported key in Tcell, at least. https://godocs.io/github.com/gdamore/tcell/v2#Key
Currently I have my program throwing away the error with a handler, but would be nice to properly support the key press.