diff --git a/src/renderer/src/components/TitleBar.tsx b/src/renderer/src/components/TitleBar.tsx index e4b8a05..9bcfd8a 100644 --- a/src/renderer/src/components/TitleBar.tsx +++ b/src/renderer/src/components/TitleBar.tsx @@ -12,6 +12,11 @@ function TitleBar({ appName }: TitleBarProps): React.JSX.Element { const handleMaximize = (): void => window.electron.ipcRenderer.send('window-maximize') const handleClose = (): void => setShowCloseConfirm(true) const handleConfirmClose = (): void => window.electron.ipcRenderer.send('window-close') + const suppressTitlebarContextMenu = (event: React.MouseEvent): void => { + event.preventDefault() + event.stopPropagation() + } + const winBtn = 'flex h-[20px] w-[20px] items-center justify-center text-white/50 hover:text-white transition cursor-pointer' @@ -21,6 +26,10 @@ function TitleBar({ appName }: TitleBarProps): React.JSX.Element {
{ + if (event.button === 2) suppressTitlebarContextMenu(event) + }} > {/* 좌측 */}