fix(tests): only override left clicks in index custom script

pull/2914/head
matejcik 1 year ago committed by matejcik
parent 35f4e1ce19
commit c6bf32eb82

@ -88,8 +88,8 @@ function findNextForHref(doc, href) {
function openLink(ev) {
if (ev.button === 2) {
// let right click through
if (ev.button !== 0 || ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.altKey) {
// let everything but unmodified left clicks through
return true;
}

Loading…
Cancel
Save