This commit is contained in:
yj 2024-07-26 17:59:14 +08:00
parent 05c45ea4c1
commit 70ee9677ce
2 changed files with 3 additions and 2 deletions

View File

@ -81,7 +81,6 @@ function createTray() {
label: '退出', click: async () => {
await mainWindow.webContents.send('quit');
app.quit();
mainWindow = null;
},
// icon: iconPath,
},
@ -155,7 +154,6 @@ app.on('ready', () => {
case 'quit':
await mainWindow.webContents.send('quit');
app.quit();
mainWindow = null;
break;
case 'maximize':
mainWindow.maximize()

View File

@ -81,6 +81,9 @@ const App: React.FC = () => {
if ((event.ctrlKey || event.metaKey) && event.key === 'r') {
event.preventDefault();
}
if (event.key === 'F11') {
event.preventDefault();
}
});
}
window.addEventListener('resize', handleResize);