Make ZoteroPane keydown handler to catch all key presses on the window

Fixes #2231
This commit is contained in:
Martynas Bagdonas 2021-10-27 11:30:53 +03:00
parent cdb826e358
commit 91dfcc96bf

View file

@ -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