Skip to main content
rilinog
Participant
November 30, 2018
Answered

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

  • November 30, 2018
  • 2 replies
  • 687 views

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 has been closed for replies.
Correct answer try67

Not possible with a script.

2 replies

Joel Geraci
Community Expert
Community Expert
December 1, 2018

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

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 30, 2018

Not possible with a script.