Refine focus to support UWP apps

Former-commit-id: 28d36ca19c8d2273a3a156cdb8f5c1eb2c708360 [formerly eeafabdd5ab5525c91e29b42cc05ab48b3bee3e3 [formerly fb2933b9d6cac84d0fbdd2620fe0b7f02ff9465d]]
Former-commit-id: cbf35ad957f8e88932b4bb01ab93df0dcedba924
Former-commit-id: bbce0eb68a5fea7c631e84dd385078ac5f904a7e
This commit is contained in:
Jaifroid 2021-06-07 22:02:46 +01:00
parent 2f3331ccec
commit 4e258b9352

View File

@ -756,8 +756,10 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
document.getElementById('scrollbox').style.height = 0;
document.getElementById('search-article').style.overflowY = 'hidden';
setTimeout(function() {
document.getElementById('articleContent').style.display = 'block';
document.getElementById('articleContent').focus();
if (appstate.target === 'iframe') {
if (articleContainer) articleContainer.style.display = 'block';
if (articleWindow) articleWindow.focus();
}
}, 50);
}
$("#articleList").empty();