Custom Buttons: working left/right/middle click

This commit is contained in:
LemmyCook 2025-09-03 22:22:22 -04:00
parent 17944211d5
commit 21383b03c5
3 changed files with 34 additions and 19 deletions

View file

@ -46,14 +46,15 @@ NIconButton {
} else {
var lines = []
if (userLeftClickExec !== "") {
lines.push(`Left click: ${userLeftClickExec}\n`)
lines.push(`Left click: <i>${userLeftClickExec}</i>`)
}
if (userRightClickExec !== "") {
lines.push(`Right click: ${userRightClickExec}\n`)
lines.push(`Right click: <i>${userRightClickExec}</i>`)
}
if (userLeftClickExec !== "") {
lines.push(`Middle click: ${userMiddleClickExec}\n`)
lines.push(`Middle click: <i>${userMiddleClickExec}</i>`)
}
return lines.join("<br/>")
}
}
opacity: hasExec ? Style.opacityFull : Style.opacityMedium