Ah, it was for WebHelp. Didn't see that...
For WebHelp, it is easy. Paste the code below in whutils.js. Note that it will not work on local Chrome. This script will work for RH8+ WebHelp
var nextBRS = 102;/* Key code of next page key */
var prevBRS = 100;/* Key code of prev page key */
var nextBRS = 102;/* Key code of next page key */
var prevBRS = 100;/* Key code of prev page key */
if(window.addEventListener){
window.addEventListener("keyup", brsListener, false);
} else if(window.attachEvent) {
window.attachEvent("onkeyup", brsListener);
}
function brsListener(event) {
var GetTopicPaneBRS = function () {//Get the topic pane
var topicPane;
if (top.frames[0].name == "ContentFrame")
topicPane = top.frames[0].frames[1].frames[1];
else
topicPane = top.frames[1].frames[1];
topicPane.focus();
return topicPane;
}
var topic = GetTopicPaneBRS();
if(event.which == nextBRS) {
if(topic.canGo(true)) {
topic.goAvenue(true);
}
} else if(event.which == prevBRS) {
if(topic.canGo(false)) {
topic.goAvenue(false);
}
}
}
Kind regards,
Willam