Languages

Menu
Sites
Language
Detect Long Press on Enter/OK Key on a caph-list Item

I need to detect long press on Enter/OK key on an caph-list item in my TV application. I am using the code below:

$("#channels-list-container").caphList({
    items: MyTVApp.groupChannels,
    template: "channels-list-item-template",
    direction: "vertical",

}).on("focused", function(event) {
    MyTVApp.focusedChannelIndex = Number(event.target.dataset.focusableName.split("channel")[1]);

}).on("selected", function(event) {
    var channelIndex = Number(event.target.dataset.focusableName.split("channel")[1]);
    var file = event.target.dataset.file;
    MyTVApp.displayPlayingScreen(file);
});

How can I detect long press on Enter/OK key when the focus is on an caph-list item?

Edited by: Burak KADİRBEYOĞLU on 16 Jan, 2019