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

Nov 30, 2018

Copy link to clipboard

Copied

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.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Not possible with a script.

TOPICS
Acrobat SDK and JavaScript

Views

96

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Nov 30, 2018

Copy link to clipboard

Copied

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.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Not possible with a script.

TOPICS
Acrobat SDK and JavaScript

Views

97

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 30, 2018 0
Most Valuable Participant ,
Nov 30, 2018

Copy link to clipboard

Copied

Not possible with a script.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 30, 2018 0
Adobe Community Professional ,
Dec 01, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 01, 2018 2