From 90d2174090eb3608056aff9cdbd27be171c0dd90 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 13 May 2019 12:49:43 +0200 Subject: [PATCH] ui/app: take input focus when initializing the HTML canvas element Signed-off-by: Elias Naur --- ui/app/os_js.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/app/os_js.go b/ui/app/os_js.go index c86faad9..2ca6db7c 100644 --- a/ui/app/os_js.go +++ b/ui/app/os_js.go @@ -56,6 +56,7 @@ func createWindow(opts *WindowOptions) error { w.w = newWindow(w) go func() { windows <- w.w + w.focus() w.w.event(ChangeStage{StageRunning}) w.draw(true) select {}