mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
8c75dce656
commit
5dc4f657e9
3 changed files with 9 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ export class Menus {
|
|||
this.menu = new Menu();
|
||||
/// #if !MOBILE
|
||||
window.addEventListener("contextmenu", (event) => {
|
||||
if (event.shiftKey) {
|
||||
return;
|
||||
}
|
||||
let target = event.target as HTMLElement;
|
||||
while (target && !target.parentElement.isEqualNode(document.querySelector("body"))) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue