dsel: additive select

This commit is contained in:
icxes 2026-01-16 17:32:31 +02:00
parent c4210e7281
commit f6250d967e
No known key found for this signature in database

View file

@ -9790,14 +9790,16 @@ function reload_browser() {
return { x: touch.clientX, y: touch.clientY }; return { x: touch.clientX, y: touch.clientY };
} }
function sel_toggle(el) { function sel_toggle(el, usel) {
clmod(el, 'sel', 't'); var m = usel ? true : 't';
clmod(el, 'sel', m);
var eref = el.getAttribute('ref'); var eref = el.getAttribute('ref');
if (eref) { if (eref) {
var ehidden = ebi(eref); var ehidden = ebi(eref);
if (ehidden) { if (ehidden) {
var tr = ehidden.closest('tr'); var tr = ehidden.closest('tr');
if (tr) clmod(tr, 'sel', 't'); if (tr) clmod(tr, 'sel', m);
} }
} }
} }
@ -9902,7 +9904,7 @@ function reload_browser() {
var faf = QSA('#ggrid a'); var faf = QSA('#ggrid a');
for (var a = 0, aa = faf.length; a < aa; a++) for (var a = 0, aa = faf.length; a < aa; a++)
if (bob(sbrect, faf[a].getBoundingClientRect())) if (bob(sbrect, faf[a].getBoundingClientRect()))
sel_toggle(faf[a]); sel_toggle(faf[a], e.shiftKey);
msel.selui(); msel.selui();
} }
ev(e); ev(e);