Martynas Bagdonas 2025-06-19 16:54:34 +03:00
parent 0acfcd3f99
commit 0b5012555d

View file

@ -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");