mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-27 06:34:06 +00:00
refactor: remove use of globalShortcut for minimize/hide to avoid hijacking system shortcuts
This commit is contained in:
@@ -174,13 +174,7 @@ app.on('ready', async () => {
|
||||
mainWindow.webContents.setZoomLevel(mainWindow.webContents.getZoomLevel() + 1);
|
||||
});
|
||||
|
||||
globalShortcut.register('CommandOrControl+M', () => {
|
||||
mainWindow.minimize();
|
||||
});
|
||||
|
||||
globalShortcut.register('CommandOrControl+H', () => {
|
||||
mainWindow.minimize();
|
||||
});
|
||||
|
||||
mainWindow.webContents.on('did-finish-load', async () => {
|
||||
let ogSend = mainWindow.webContents.send;
|
||||
|
||||
Reference in New Issue
Block a user