mirror of
https://github.com/9001/copyparty.git
synced 2026-03-24 17:13:01 +10:00
a11y: enter = onclick
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user