Assign keys to Next topic and Previous topic in Topic Toolbar Proxy

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
iamiamsuperman
Jr. Propeller Head
Posts: 3
Joined: Thu Jan 11, 2024 5:34 am

Assign keys to Next topic and Previous topic in Topic Toolbar Proxy

Post by iamiamsuperman »

Hi,
I use the Topic Toolbar Proxy in my HTML5 output to navigate through the topics.

What I would like to do is to assign keys to the next and prevoius buttons. I'm thinking of using javascript and an eventlistener to act on keypress, but I don't know what to call for next topic and prevoius topic.
Any one done this?
Psider
Propellus Maximus
Posts: 816
Joined: Wed Jul 06, 2011 1:32 am

Re: Assign keys to Next topic and Previous topic in Topic Toolbar Proxy

Post by Psider »

I've never done it, but I'd imagine it's just calling the click() function for the element that represents the button.

In jquery it would be something like the following:

$('element.class-name').click();

Hopefully that at least gives you a direction to look until someone more knowledgeable comes along. :)
iamiamsuperman
Jr. Propeller Head
Posts: 3
Joined: Thu Jan 11, 2024 5:34 am

Re: Assign keys to Next topic and Previous topic in Topic Toolbar Proxy

Post by iamiamsuperman »

Ah, thank you. I will try that :)
Post Reply