1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 05:58:09 +00:00

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

This commit is contained in:
matejcik 2023-03-20 11:57:22 +01:00 committed by matejcik
parent 35f4e1ce19
commit c6bf32eb82

View File

@ -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;
}