Fix reader focusing
This commit is contained in:
parent
b8194129da
commit
7e28973f3a
3 changed files with 2 additions and 10 deletions
|
@ -221,7 +221,7 @@ var ZoteroContextPane = new function () {
|
|||
// Focus reader pages view if context pane note editor is not selected
|
||||
if (Zotero_Tabs.selectedID == reader.tabID
|
||||
&& (!document.activeElement
|
||||
|| !document.activeElement.closest('.context-node iframe[anonid="editor-view"]'))) {
|
||||
|| !document.activeElement.closest('.context-node iframe[id="editor-view"]'))) {
|
||||
reader.focus();
|
||||
}
|
||||
|
||||
|
|
|
@ -81,14 +81,6 @@ class ReaderInstance {
|
|||
return this._type;
|
||||
}
|
||||
|
||||
focus() {
|
||||
try {
|
||||
this._iframeWindow.document.querySelector('#viewerContainer').focus();
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
}
|
||||
|
||||
getSecondViewState() {
|
||||
let state = this._iframeWindow.wrappedJSObject.getSecondViewState();
|
||||
return state ? JSON.parse(JSON.stringify(state)) : undefined;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 0b1731ff35078cbea1dd67458d72dc5890d9b385
|
||||
Subproject commit 2f22ad18e355aa1aa4b396d514f71e494e84d613
|
Loading…
Reference in a new issue