mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
ui/app: take input focus when initializing the HTML canvas element
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user