From 91dfcc96bf784f18bc12b936d246fbaf24262aa5 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Wed, 27 Oct 2021 11:30:53 +0300 Subject: [PATCH] Make ZoteroPane keydown handler to catch all key presses on the window Fixes #2231 --- chrome/content/zotero/zoteroPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index fde53dd402..41bda76153 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -77,7 +77,7 @@ var ZoteroPane = new function() } // Set key down handler - document.getElementById('appcontent').addEventListener('keydown', ZoteroPane_Local.handleKeyDown, true); + document.addEventListener('keydown', ZoteroPane_Local.handleKeyDown, true); document.addEventListener('blur', ZoteroPane.handleBlur); // Init toolbar buttons for all progress queues