index.js
function disableAll(win) {
	debug(`Disabling all shortcuts on window ${title(win)}`);
	const wc = win.webContents;
	const shortcutsOfWindow = windowsWithShortcuts.get(wc);

	for (const shortcut of shortcutsOfWindow) {
		shortcut.enabled = false;
	}
}
function disableAll(win) {
	debug(`Disabling all shortcuts on window ${title(win)}`);
	const wc = win.webContents;
	const shortcutsOfWindow = windowsWithShortcuts.get(wc);

	for (const shortcut of shortcutsOfWindow) {
		shortcut.enabled = false;
	}
}
function disableAll ( win ) { debug ( ` ${ title ( win ) } ` ) ; const wc = win . webContents ; const shortcutsOfWindow = windowsWithShortcuts . get ( wc ) ; for ( const shortcut of shortcutsOfWindow ) { shortcut . enabled = false ; } }
Disable all of the shortcuts registered on the BrowserWindow instance.
Registered shortcuts no more works on the `window` instance, but the module
keep a reference on them. You can reactivate them later by calling `enableAll`
method on the same window instance.
@param  {BrowserWindow} win BrowserWindow instance
@return {Undefined}
Disable all of the shortcuts registered on the BrowserWindow instance . Registered shortcuts no more works on the window instance but the module keep a reference on them . You can reactivate them later by calling enableAll method on the same window instance .