diff --git a/misc/goplay/goplay.go b/misc/goplay/goplay.go index f887fbbda7..f3e2ff5651 100644 --- a/misc/goplay/goplay.go +++ b/misc/goplay/goplay.go @@ -235,8 +235,8 @@ function autoindent(el) { }, 1); } -function keyHandler() { - var e = window.event; +function keyHandler(event) { + var e = window.event || event; if (e.keyCode == 9) { // tab insertTabs(1); e.preventDefault(); @@ -290,7 +290,7 @@ function compileUpdate() {
- +
(Shift-Enter to compile and run.)     Compile and run after each keystroke