-
// 控制台切换 window.addEventListener('keydown', (e) => { const { altKey, ctrlKey, keyCode } = e; console.log(keyCode, 'keyCode'); // alt + ctrl + (Command | Windows) + l if (keyCode === 123) { //获取当前窗体 const currentWindow = window.require('electron').remote.getCurrentWindow(); currentWindow && currentWindow.toggleDevTools(); e.preventDefault(); } }, false);
-