mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Fix regression triggering multiple reader context menus
Fixes https://forums.zotero.org/discussion/124939/persistent-context-menu-in-the-snapshot-reader Fixes https://forums.zotero.org/discussion/124938/double-context-menus-on-annotations-in-the-pdf-reader
This commit is contained in:
parent
0acfcd3f99
commit
0b5012555d
1 changed files with 8 additions and 0 deletions
|
|
@ -1191,6 +1191,14 @@ class ReaderInstance {
|
|||
_handleReaderTextboxContextMenuOpen = (event) => {
|
||||
this._window.goUpdateGlobalEditMenuItems(true);
|
||||
|
||||
if (
|
||||
event.view !== this._iframeWindow
|
||||
// For text annotation box
|
||||
&& (this._type !== 'pdf' || event.target?.nodeName !== 'TEXTAREA')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
let iframeWindow = event.target.ownerGlobal;
|
||||
|
||||
this._window.MozXULElement.insertFTLIfNeeded("toolkit/global/textActions.ftl");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue