Skip to content

Commit 6388610

Browse files
authored
Merge pull request #20388 from calixteman/bug1995705
[Editor] Avoid to have several Undo entries in the context menu (bug 1995705)
2 parents 1b5ecd3 + 19cbdba commit 6388610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/display/editor/tools.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,12 +1537,12 @@ class AnnotationEditorUIManager {
15371537

15381538
addEditListeners() {
15391539
this.#addKeyboardManager();
1540-
this.#addCopyPasteListeners();
1540+
this.setEditingState(true);
15411541
}
15421542

15431543
removeEditListeners() {
15441544
this.#removeKeyboardManager();
1545-
this.#removeCopyPasteListeners();
1545+
this.setEditingState(false);
15461546
}
15471547

15481548
dragOver(event) {

0 commit comments

Comments
 (0)