1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

[Editor] Remove copy/paste listener when alt text dialog is displayed

This commit is contained in:
Calixte Denizet 2023-09-19 22:41:47 +02:00
parent 54f6264d5b
commit c162b004ce
2 changed files with 17 additions and 7 deletions

View file

@ -84,7 +84,7 @@ class AltTextManager {
this.#currentEditor = editor;
this.#uiManager = uiManager;
this.#uiManager.removeKeyboardManager();
this.#uiManager.removeEditListeners();
this.#eventBus._on("resize", this.#boundSetPosition);
try {
@ -158,7 +158,7 @@ class AltTextManager {
}
#close() {
this.#uiManager?.addKeyboardManager();
this.#uiManager?.addEditListeners();
this.#eventBus._off("resize", this.#boundSetPosition);
this.#currentEditor = null;
this.#uiManager = null;