Trigger annotation drawing is finished when 'ENTER' is hit

I want to finish drawing annotation on ENTER and get annotationChanged action add called. Right now I have to double click to finish the drawing of annotation. So I want it from both ways either by double clicking or by ENTER.

How can I do that ? Is it possible in Pdfjsexpress!


You should be able to register your custom enter key in the viewer using instance.hotkeys. Inside the callback you would want to call polylineTool.mouseDoubleClick.


1 Like