mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
a11y: enter = onclick
This commit is contained in:
parent
aa98e427f0
commit
bdd0e5d771
|
@ -3996,6 +3996,9 @@ document.onkeydown = function (e) {
|
|||
}
|
||||
}
|
||||
|
||||
if (k == 'Enter' && ae && (ae.onclick || ae.hasAttribute('tabIndex')))
|
||||
return ev(e) && ae.click() || true;
|
||||
|
||||
if (aet && aet != 'a' && aet != 'tr' && aet != 'pre')
|
||||
return;
|
||||
|
||||
|
|
|
@ -40,5 +40,6 @@ for (var k in (d || {})) {
|
|||
}
|
||||
|
||||
tt.init();
|
||||
if (!ebi('c'))
|
||||
QS('input[name="cppwd"]').focus();
|
||||
var o = QS('input[name="cppwd"]');
|
||||
if (!ebi('c') && o.offsetTop + o.offsetHeight < window.innerHeight)
|
||||
o.focus();
|
||||
|
|
Loading…
Reference in a new issue