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?
Assign keys to Next topic and Previous topic in Topic Toolbar Proxy
-
- 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
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.
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.
-
- 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
Ah, thank you. I will try that