fix a11y crash; closes #649

This commit is contained in:
ed 2025-08-21 19:39:48 +00:00
parent ca98d54fda
commit 0de07d8e8b
2 changed files with 5 additions and 2 deletions

View file

@ -571,6 +571,7 @@ pre, code, tt, #doc, #doc>code {
overflow: hidden; overflow: hidden;
width: 0; width: 0;
height: 0; height: 0;
left: -10em;
color: var(--bg); color: var(--bg);
} }
html .ayjump:focus { html .ayjump:focus {

View file

@ -13420,9 +13420,11 @@ function eval_hash() {
d.onclick = function (e) { d.onclick = function (e) {
ev(e); ev(e);
if (a) if (a)
QS(treectl.hidden ? '#path a:nth-last-child(2)' : '#treeul a.hl').focus(); d = QS(treectl.hidden ? '#path a:nth-last-child(2)' : '#treeul a.hl');
else else
QS(thegrid.en ? '#ggrid a' : '#files tbody tr[tabindex]').focus(); d = QS(thegrid.en ? '#ggrid a' : '#files tbody tr[tabindex]');
if (d)
d.focus();
}; };
})(a); })(a);