Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? Yes
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? Yes
Please give a brief summary of your issue:
Supporting keyboard movement of annotations for WCAG 2.2 (SC 2.5.7)
Please describe your issue and provide steps to reproduce it:
In WebViewer 11.9.1, annotations such as shapes and text boxes can be selected, but moving them appears to require mouse-based drag-and-drop. We have not found an out-of-the-box way to reposition annotations using the keyboard or another non-drag interaction.
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
It seems you’re looking to implement keyboard accessibility for moving annotations in Apryse’s WebViewer to comply with WCAG 2.2 Success Criterion 2.5.7. Currently, the WebViewer API does not natively support keyboard-based movement of annotations, but you can implement this functionality by capturing keyboard events and updating the annotation’s position programmatically.
Some things you can try:
Listen for keyboard events, such as arrow key presses, within the viewer.
Use the docViewer instance to get the currently selected annotation.
Modify the annotation’s position in response to the keyboard events by updating its X and Y coordinates.
Programmatically trigger the annotation’s setPosition method to update its location.
Ensure that the changes are committed to the document by refreshing the viewer or the specific annotation.