diff --git a/chrome/content/zotero/contextPane.js b/chrome/content/zotero/contextPane.js index 1ad34a7a5e..4d833cf3c4 100644 --- a/chrome/content/zotero/contextPane.js +++ b/chrome/content/zotero/contextPane.js @@ -80,10 +80,12 @@ var ZoteroContextPane = new function () { window.addEventListener('resize', _update); Zotero.Reader.onChangeSidebarWidth = _updatePaneWidth; Zotero.Reader.onToggleSidebar = _updatePaneWidth; + _contextPaneInner.addEventListener("keypress", ZoteroItemPane.handleKeypress); }; this.destroy = function () { window.removeEventListener('resize', _update); + _contextPaneInner.removeEventListener("keypress", ZoteroItemPane.handleKeypress); Zotero.Notifier.unregisterObserver(this._notifierID); Zotero.Reader.onChangeSidebarWidth = () => {}; Zotero.Reader.onToggleSidebar = () => {}; diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js index dc3f95c601..a07260c26d 100644 --- a/chrome/content/zotero/elements/attachmentBox.js +++ b/chrome/content/zotero/elements/attachmentBox.js @@ -32,8 +32,8 @@ content = MozXULElement.parseXULToFragment(` - -