Skip to content

Commit 23401b0

Browse files
committed
add KeybordSendsClicks.html to readme, minor fix to event init
1 parent 7b7e260 commit 23401b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

KeyboardSendsClicks.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
function createMouseEvent(typeString, oldMouseEventTemplate) {
2020
var e = document.createEvent("MouseEvents");
21-
e.initMouseEvent(typeString, true, true, null, 1,
21+
e.initMouseEvent(typeString, true, true, window, 1,
2222
oldMouseEventTemplate.screenX,
2323
oldMouseEventTemplate.screenY,
2424
oldMouseEventTemplate.clientX,

README

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ Miscellaneous HTML test pages.
33
Hosted pages prefixed with http://scheib.github.com/HTMLMisc/
44

55
E.g.
6+
http://scheib.github.com/HTMLMisc/KeyboardSendsClicks.html
67
http://scheib.github.com/HTMLMisc/KeyboardState.html
78
http://scheib.github.com/HTMLMisc/PointerLockAndFullscreen.html

0 commit comments

Comments
 (0)