Skip to content
Snippets Groups Projects
Unverified Commit 4ce15577 authored by GyDi's avatar GyDi
Browse files

feat: prevent context menu on Windows close #22

parent 98fa4d5e
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,10 @@ const Layout = () => {
elevation={0}
className={`${isWinOs ? "windows " : ""}layout`}
onPointerDown={onDragging}
onContextMenu={(e) => {
// only prevent it on Windows
if (isWinOs) e.preventDefault();
}}
sx={[
(theme) => ({
bgcolor: alpha(theme.palette.background.paper, blur ? 0.85 : 1),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment