electron/spec/fixtures/pages/onkeydown.html
2016-10-10 09:35:43 -07:00

9 lines
235 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
document.onkeydown = function (e) {
require('electron').ipcRenderer.send('keydown', e.key, e.code, e.keyCode, e.shiftKey, e.ctrlKey, e.altKey)
}
</script>
</body>
</html>