Is there any JS code can do start the next timeline once click arrow key or page up key? and start previous timeline once click arrow down or page down key?
down below code is not working when I want it to play next & previous timeline
document.onkeydown = checkKey;
function checkKey(e) {
e = e || window.event;
if (e.keyCode == ‘33’) {
// up arrow
hypeDocument.startTimelineNamed’all’,kDirectionForward )
}
else if (e.keyCode == ‘34’) {
// down arrow
hypeDocument.startTimelineNamed’all’,kDirectionReverse )
}
}
Thank you!