语言

Menu
Sites
Language
Detect keypress on remote control - JS TV APP

Hello,

I am developing a WEB APP for TV on tizen studio.

I can correctly handle keydown eventListener on document to detect actions on the Remote Control thorugh which i handle various tasks of the application.

What I cannot seem to grab is the longPress, by that I do not mean the longPress explained in the samsung docs which is triggered when a user releases the button after long pressing it. I need to capture the actual "keypress" without release of the button to start a seek function which then will be stopped on the "keyup" event (which is actually detected properly)

tried the following listeners on document with no success: keypress, mounsedown, touchstart;

Anyone has a solution to my problem?

 

Thanks in advance

编辑者为: Alberto Miconi 25 6月, 2020