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

	// Remove listener from window
	shortcutsOfWindow.removeListener();

	windowsWithShortcuts.delete(wc);
}
function unregisterAll(win) {
	debug(`Unregistering all shortcuts on window ${title(win)}`);
	const wc = win.webContents;
	const shortcutsOfWindow = windowsWithShortcuts.get(wc);

	// Remove listener from window
	shortcutsOfWindow.removeListener();

	windowsWithShortcuts.delete(wc);
}
function unregisterAll ( win ) { debug ( ` ${ title ( win ) } ` ) ; const wc = win . webContents ; const shortcutsOfWindow = windowsWithShortcuts . get ( wc ) ; // Remove listener from window shortcutsOfWindow . removeListener ( ) ; windowsWithShortcuts . delete ( wc ) ; }
Unregisters all of the shortcuts registered on any focused BrowserWindow
instance. This method does not unregister any shortcut you registered on
a particular window instance.
@param  {BrowserWindow} win BrowserWindow instance
@return {Undefined}
Unregisters all of the shortcuts registered on any focused BrowserWindow instance . This method does not unregister any shortcut you registered on a particular window instance .