How to handle keyboard events without the View class?


#1

The events (including keyboard events) used to be handled in the View class. What is the best practice to do it now? I read this: Can components handle events like Views do? but what if I don’t want to define a component just for handling?