Add keydown sendInputEvent specs

This commit is contained in:
Kevin Sawicki 2016-10-07 14:44:35 -07:00
parent 2efb7a12cb
commit d69367aa9b
2 changed files with 66 additions and 1 deletions

9
spec/fixtures/pages/onkeydown.html vendored Normal file
View file

@ -0,0 +1,9 @@
<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>