[Zotero 7 Beta] Stolen focus after quickly switching tab
In some conditions, the keyboard navigation between pages is not working after switching to a PDF tab.
Steps to reproduce:
1) Select an item with a PDF file in the main library and double click to open the PDF file in the Reader
2) During the loading of the PDF file (before the content of the PDF file appears), click on the "My Library" tab
3) Wait until the loading finishes in the background and go back to the PDF Reader tab that has just been opened by clicking on the tab
4) Press the "Right arrow" key on the keyboard
-> Nothing happens
5) Click again on the tab
6) Press the "Right arrow" key on the keyboard
-> It switches to another tab
https://s3.amazonaws.com/zotero.org/images/forums/u265723/ojbqzivwcwmcu320opbc.png
I get the following error at step 4:
Zotero 7.0.0-beta.90+f829d7c43 (64-bit)
Windows 10
It seems to be a small left-over from this previous bug:
https://forums.zotero.org/discussion/114088/zotero-7-beta-ctrl-f-in-the-pdf-after-switching-tab
Steps to reproduce:
1) Select an item with a PDF file in the main library and double click to open the PDF file in the Reader
2) During the loading of the PDF file (before the content of the PDF file appears), click on the "My Library" tab
3) Wait until the loading finishes in the background and go back to the PDF Reader tab that has just been opened by clicking on the tab
4) Press the "Right arrow" key on the keyboard
-> Nothing happens
5) Click again on the tab
6) Press the "Right arrow" key on the keyboard
-> It switches to another tab
https://s3.amazonaws.com/zotero.org/images/forums/u265723/ojbqzivwcwmcu320opbc.png
I get the following error at step 4:
Debug ID: D2126561730[JavaScript Error: "group is null" {file: "resource://zotero/reader/reader.js" line: 43094}]
Zotero 7.0.0-beta.90+f829d7c43 (64-bit)
Windows 10
It seems to be a small left-over from this previous bug:
https://forums.zotero.org/discussion/114088/zotero-7-beta-ctrl-f-in-the-pdf-after-switching-tab