HeliosLauncher/app/assets/js/script.js

8 lines
222 B
JavaScript
Raw Normal View History

2017-04-22 14:20:23 -07:00
const remote = require('electron').remote;
document.addEventListener("keydown", function (e) {
if (e.keyCode === 123) { // F12
var window = remote.getCurrentWindow();
window.toggleDevTools();
}
});