Skip to main content
rilinog
Participant
Nov 30, 2018 5:14 PM UTC
Answered

Button to go to next or previous comment/highlight/annotation

The TAB and SHIFT-TAB keyboard keys will jump to the next or previous highlight. I would like to add two buttons to the toolbar to do this.

Opening the comment pane to click on comments takes up too much display space.

What function can be used to perform what TAB and SHIFT+TAB are doing?  I can't figure out how to jump to the next or previous highlight annotation in javascript, or how to get a button to emulate a TAB keypress.

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Nov 30, 2018 5:25 PM UTC

Not possible with a script.

2 replies

Joel Geraci
Community Expert
Community Expert
Dec 1, 2018 5:16 PM UTC

Elaborating... It's not possible because the "selectedAnnots" property is read-only. You can't set the selected annotation via JavaScript.

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Nov 30, 2018 5:25 PM UTC

Not possible with a script.

Translate