mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-27 06:42:02 +00:00
fix(tests): only override left clicks in index custom script
This commit is contained in:
parent
35f4e1ce19
commit
c6bf32eb82
@ -88,8 +88,8 @@ function findNextForHref(doc, href) {
|
|||||||
|
|
||||||
|
|
||||||
function openLink(ev) {
|
function openLink(ev) {
|
||||||
if (ev.button === 2) {
|
if (ev.button !== 0 || ev.ctrlKey || ev.metaKey || ev.shiftKey || ev.altKey) {
|
||||||
// let right click through
|
// let everything but unmodified left clicks through
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user