diff --git a/src/common/reader.js b/src/common/reader.js index 381346f5..a6de08ce 100644 --- a/src/common/reader.js +++ b/src/common/reader.js @@ -1200,8 +1200,8 @@ class Reader { // unless it is a note (so that one can type after creating it via shortcut, same as with text annotation) if (!triggeringEvent || triggeringEvent.button !== 2) { if (triggeredFromView) { - if (['note', 'highlight', 'underline'].includes(annotation.type) - && !annotation.comment && (!triggeringEvent || annotation.type === 'note')) { + if (['note', 'highlight', 'underline', 'image'].includes(annotation.type) + && !annotation.comment && (!triggeringEvent || !('key' in triggeringEvent))) { this._enableAnnotationDeletionFromComment = true; setTimeout(() => { let content;