mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-618 - Initially register global shortcut (#436)
This commit is contained in:
parent
a71d8cb2c7
commit
6489990b19
@ -574,6 +574,9 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
|
||||
}
|
||||
}
|
||||
|
||||
// This will initially register the global shortcut
|
||||
globalShortcut.register(isMac ? 'Cmd+Alt+I' : 'Ctrl+Shift+I', devTools);
|
||||
|
||||
app.on('browser-window-focus', function () {
|
||||
globalShortcut.register(isMac ? 'Cmd+Alt+I' : 'Ctrl+Shift+I', devTools);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user