DEV Community

Discussion on: React JS for Smart TV - discussion

 
pdrmdrs profile image
Pedro Paulo Paiva de Medeiros

To control the remote control events I use the onKeyDown event that the React give to me. Just put the event on your app's root component and handle the focus and where the user should go when some key is pressed.

The onKeyDown event will send an object that I usually call 'event'.

The event dispatched is this: developer.mozilla.org/en-US/docs/W...

You can use the 'key' attribute or others if you want it.

Thread Thread
 
farnaziifz profile image
Farnaziifz

thanks a milion.