mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +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}
|
||||
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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user