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:
parent
54f6264d5b
commit
c162b004ce
2 changed files with 17 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue