Is it possible to create/ assign shortcut keys for TOC navigation?
Hi
I am using RH10 as part of TCS4.
Is it possible to assign PgUp and PgDn keys as shortcuts to navigate between topics in the TOC? I have created the browse sequence.
Sreekanth
Hi
I am using RH10 as part of TCS4.
Is it possible to assign PgUp and PgDn keys as shortcuts to navigate between topics in the TOC? I have created the browse sequence.
Sreekanth
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
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.