Item pane header: Show default context menu for attachment titles
Closes #4415
This commit is contained in:
parent
c2575d2a14
commit
0944f3bdc6
1 changed files with 3 additions and 1 deletions
|
@ -117,7 +117,9 @@
|
||||||
this.titleField.addEventListener('blur', () => this.save());
|
this.titleField.addEventListener('blur', () => this.save());
|
||||||
this.titleField.ariaLabel = Zotero.getString('itemFields.title');
|
this.titleField.ariaLabel = Zotero.getString('itemFields.title');
|
||||||
this.titleField.addEventListener('contextmenu', (event) => {
|
this.titleField.addEventListener('contextmenu', (event) => {
|
||||||
if (!this._item) return;
|
if (!this._item
|
||||||
|
// Attachment title field: Use default editable-text context menu
|
||||||
|
|| this._item.isAttachment()) return;
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let menupopup = ZoteroPane.buildFieldTransformMenu({
|
let menupopup = ZoteroPane.buildFieldTransformMenu({
|
||||||
|
|
Loading…
Reference in a new issue