"use strict";

const electron = require("electron");
const {app} = electron;
const {Menu} = electron;
const {BrowserWindow} = electron;

module.exports.setDevMenu = function () {
    var devMenu = Menu.buildFromTemplate([{
        label: "Development",
        submenu: [{
            label: "Reload",
            accelerator: "CmdOrCtrl+R",
            click: function () {
                BrowserWindow.getFocusedWindow().reload();
            }
        },{
            label: "Toggle DevTools",
            accelerator: "Alt+CmdOrCtrl+I",
            click: function () {
                BrowserWindow.getFocusedWindow().toggleDevTools();
            }
        },{
            label: "Quit",
            accelerator: "CmdOrCtrl+Q",
            click: function () {
                app.quit();
            }
        }]
    }]);
    Menu.setApplicationMenu(devMenu);
};
"use strict";

const electron = require("electron");
const {app} = electron;
const {Menu} = electron;
const {BrowserWindow} = electron;

module.exports.setDevMenu = function () {
    var devMenu = Menu.buildFromTemplate([{
        label: "Development",
        submenu: [{
            label: "Reload",
            accelerator: "F5",
            click: function () {
                BrowserWindow.getFocusedWindow().reload();
            }
        },{
            label: "Toggle DevTools",
            accelerator: "Alt+CmdOrCtrl+I",
            click: function () {
                BrowserWindow.getFocusedWindow().toggleDevTools();
            }
        },{
            label: "Quit",
            accelerator: "CmdOrCtrl+Q",
            click: function () {
                app.quit();
            }
        }]
    }]);
    Menu.setApplicationMenu(devMenu);
};
Change development reload shortcut to F5
Change development reload shortcut to F5

This prevents interference when using bash's Ctrl-R command
