mirror of
https://github.com/9001/copyparty.git
synced 2025-08-21 19:02:21 -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;
|
||||
width: 0;
|
||||
height: 0;
|
||||
left: -10em;
|
||||
color: var(--bg);
|
||||
}
|
||||
html .ayjump:focus {
|
||||
|
|
|
@ -13420,9 +13420,11 @@ function eval_hash() {
|
|||
d.onclick = function (e) {
|
||||
ev(e);
|
||||
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
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue