Closed steve-chavez closed 6 years ago
For this kind of advanced use case I guess you should probably use refs and bind your event. It would be a bit difficult for the library to guess the combination of event elements based on the name (not saying it can't be done, just that maybe it should not be done). But maybe some middle way can be found. Something along onCustom
taking a tuple of [event, handler]
or even a list of those.
@steve-chavez any luck figuring out child keypress events? Struggling with the best way to do this.
@steve-chavez Thanks so much for the reply! I'll try that out.
On blessed is possible to do this with:
Instead of
on('keypress')
I have a root element that needs to handle this, I've tried withonElementKeypress
but it doesn''t work. Check blessed event bubbling.