From 27b8936a9282d1a23f1cc96db0e58ecc113895bf Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Mon, 7 Jun 2021 21:23:07 +0100 Subject: [PATCH] Explicitly focus articleContent after using buttons Former-commit-id: 12872d345a85b9f109f3d1b9aff7115d3b7c83d0 [formerly da85fb2e051d0e071161379e94be29d3cf32ae88 [formerly f6aa20ff028e593c63e288b7dc7ca0f9fe10d03b]] Former-commit-id: aeea999af53ce067641ad54ea58d3ce211a0fd6b Former-commit-id: b3840d80568989ab6784e8bbf7b989f00975bee9 --- www/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/js/app.js b/www/js/app.js index 3d455f52..7a83d7ef 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -757,6 +757,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett document.getElementById('search-article').style.overflowY = 'hidden'; setTimeout(function() { document.getElementById('articleContent').style.display = 'block'; + document.getElementById('articleContent').focus(); }, 50); } $("#articleList").empty();