This commit is contained in:
parent
05c45ea4c1
commit
70ee9677ce
2
main.js
2
main.js
|
|
@ -81,7 +81,6 @@ function createTray() {
|
||||||
label: '退出', click: async () => {
|
label: '退出', click: async () => {
|
||||||
await mainWindow.webContents.send('quit');
|
await mainWindow.webContents.send('quit');
|
||||||
app.quit();
|
app.quit();
|
||||||
mainWindow = null;
|
|
||||||
},
|
},
|
||||||
// icon: iconPath,
|
// icon: iconPath,
|
||||||
},
|
},
|
||||||
|
|
@ -155,7 +154,6 @@ app.on('ready', () => {
|
||||||
case 'quit':
|
case 'quit':
|
||||||
await mainWindow.webContents.send('quit');
|
await mainWindow.webContents.send('quit');
|
||||||
app.quit();
|
app.quit();
|
||||||
mainWindow = null;
|
|
||||||
break;
|
break;
|
||||||
case 'maximize':
|
case 'maximize':
|
||||||
mainWindow.maximize()
|
mainWindow.maximize()
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,9 @@ const App: React.FC = () => {
|
||||||
if ((event.ctrlKey || event.metaKey) && event.key === 'r') {
|
if ((event.ctrlKey || event.metaKey) && event.key === 'r') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
if (event.key === 'F11') {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
window.addEventListener('resize', handleResize);
|
window.addEventListener('resize', handleResize);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue