mirror of
https://github.com/9001/copyparty.git
synced 2025-08-22 03:12:20 -06:00
fix a11y crash; closes #649
This commit is contained in:
parent
ca98d54fda
commit
0de07d8e8b
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue