From d02eb145d59b0563be477b624c208e99a08c6d3f Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 15 Mar 2022 14:43:22 +0200 Subject: [PATCH] Fix copying over PDF reader context pane Fixes #2408 --- chrome/content/zotero/xpcom/reader.js | 2 +- pdf-reader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/reader.js b/chrome/content/zotero/xpcom/reader.js index f8754cfa75..d53ed84161 100644 --- a/chrome/content/zotero/xpcom/reader.js +++ b/chrome/content/zotero/xpcom/reader.js @@ -411,7 +411,7 @@ class ReaderInstance { menuitem = this._window.document.createElement('menuitem'); menuitem.setAttribute('label', Zotero.getString('general.copy')); menuitem.addEventListener('command', () => { - Zotero.Utilities.Internal.copyTextToClipboard(data.text); + this._window.document.getElementById('menu_copy').click(); }); popup.appendChild(menuitem); // Separator diff --git a/pdf-reader b/pdf-reader index cca2dcbe5c..8a690d20ab 160000 --- a/pdf-reader +++ b/pdf-reader @@ -1 +1 @@ -Subproject commit cca2dcbe5ce1d4566bb6cd28f18c19c030e0c80a +Subproject commit 8a690d20abafdbbdd4cd1618f40e794bca27f318