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:
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…
Reference in New Issue
Block a user