Prevent delete and backspace key press on selected annotation

Which product are you using?
PDF.js Express Plus

PDF.js Express Version

Detailed description of issue
I had add custom button on annotationPopup programmatically and it’s working fine on button click but it also delete annotation on delete key press but I don’t want to delete annotation on delete or backspace button how to prevent it

Expected behaviour

Hello shahid.shaikh

If you want to prevent the annotation from being deleted you can add set the NoDelete property to true.

Like so:

<instance of an annotation>.NoDelete = true;

Does this work for you?

Best regards,