10 lines
308 B
JavaScript
10 lines
308 B
JavaScript
// @flow
|
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
import { globalShortcut } from 'electron';
|
|
|
|
export const registerDebugShortcut = (app: Object, mainWindow: Object) => globalShortcut.register('CommandOrControl+Option+B', () => {
|
|
app.dock.show();
|
|
mainWindow.webContents.openDevTools();
|
|
});
|