From 795e7c8eb2137a7f4a70da17677181fbe357a99d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 7 Jan 2015 04:34:36 +0900 Subject: [PATCH] Focus canvas on start (#64) --- internal/ui/ui_js.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index bea8fbed8..115ce7533 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -129,6 +129,7 @@ func Start(width, height, scale int, title string) (actualScale int, err error) y -= rect.Get("top").Int() currentInput.mouseMove(x/scale, y/scale) }) + canvas.Call("focus") return scale, nil }