electron/spec/fixtures/pages/onkeydown.html

10 lines
235 B
HTML
Raw Normal View History

2016-10-07 21:44:35 +00:00
<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>