mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
feat: prevent context menu on Windows close #22
This commit is contained in:
parent
98fa4d5e65
commit
4ce15577cd
|
@ -84,6 +84,10 @@ const Layout = () => {
|
||||||
elevation={0}
|
elevation={0}
|
||||||
className={`${isWinOs ? "windows " : ""}layout`}
|
className={`${isWinOs ? "windows " : ""}layout`}
|
||||||
onPointerDown={onDragging}
|
onPointerDown={onDragging}
|
||||||
|
onContextMenu={(e) => {
|
||||||
|
// only prevent it on Windows
|
||||||
|
if (isWinOs) e.preventDefault();
|
||||||
|
}}
|
||||||
sx={[
|
sx={[
|
||||||
(theme) => ({
|
(theme) => ({
|
||||||
bgcolor: alpha(theme.palette.background.paper, blur ? 0.85 : 1),
|
bgcolor: alpha(theme.palette.background.paper, blur ? 0.85 : 1),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user