fix(hotkey): contextmenu

This commit is contained in:
AkiChase 2024-05-23 21:05:52 +08:00
parent fea30b480e
commit 1e852a4e85

View File

@ -834,6 +834,9 @@ function addSightShortcuts(
// create box element
maskElement.style.cursor = "none";
const mouseRangeBoxElement = createMouseRangeBox();
mouseRangeBoxElement.addEventListener("contextmenu", (e) =>
e.preventDefault()
);
mouseRangeBoxElement.addEventListener("mouseleave", moveLeaveHandler);
document.body.appendChild(mouseRangeBoxElement);