feat(context menu): prevent default context menu and emit event on elements
This commit is contained in:
parent
af056c08d2
commit
c560656a8f
1 changed files with 5 additions and 0 deletions
|
|
@ -17,6 +17,11 @@ export function setupHooks() {
|
|||
listen("auth/finished", (event) => {
|
||||
router.push("/store");
|
||||
});
|
||||
|
||||
document.addEventListener("contextmenu", (event) => {
|
||||
event.target?.dispatchEvent(new Event("contextmenu"));
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
export function initialNavigation(state: Ref<AppState>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue