mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
No right click tic canvas
This commit is contained in:
@@ -2,7 +2,7 @@ import { basename } from "path";
|
||||
import { useCallback, useEffect, useRef } from "react";
|
||||
import { type ContainerHookProps } from "components/system/Apps/AppContainer";
|
||||
import { useProcesses } from "contexts/process";
|
||||
import { bufferToUrl, loadFiles } from "utils/functions";
|
||||
import { bufferToUrl, haltEvent, loadFiles } from "utils/functions";
|
||||
import { useFileSystem } from "contexts/fileSystem";
|
||||
import useTitle from "components/system/Window/useTitle";
|
||||
import useIsolatedContentWindow from "hooks/useIsolatedContentWindow";
|
||||
@@ -39,6 +39,8 @@ const useTic80 = ({
|
||||
"#canvas"
|
||||
) as HTMLCanvasElement;
|
||||
|
||||
canvas.addEventListener("contextmenu", haltEvent);
|
||||
|
||||
contentWindow.Module = {
|
||||
arguments: blobUrl ? [blobUrl] : undefined,
|
||||
canvas,
|
||||
|
||||
Reference in New Issue
Block a user