Focus canvas on start (#64)

This commit is contained in:
Hajime Hoshi 2015-01-07 04:34:36 +09:00
parent ad3f37ae75
commit 795e7c8eb2

View File

@ -129,6 +129,7 @@ func Start(width, height, scale int, title string) (actualScale int, err error)
y -= rect.Get("top").Int() y -= rect.Get("top").Int()
currentInput.mouseMove(x/scale, y/scale) currentInput.mouseMove(x/scale, y/scale)
}) })
canvas.Call("focus")
return scale, nil return scale, nil
} }