Skip to content

Commit b18dfe0

Browse files
committed
chore: f12 to open devtools in electron test runner window
1 parent d333e4a commit b18dfe0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/SpecRunner.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@
207207
});
208208
}
209209
setupElectronBootVars();
210+
// F12 to toggle dev tools in Electron
211+
document.addEventListener('keydown', function(e) {
212+
if (e.key === 'F12') {
213+
e.preventDefault();
214+
window.electronAPI.toggleDevTools();
215+
}
216+
});
210217
}
211218
</script>
212219

0 commit comments

Comments
 (0)