fix: set focus on internal Box for Image widget

This commit is contained in:
ayn2op 2023-05-02 17:01:56 +05:30
parent e22ce9588b
commit 692925c4b4
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ func (i *Image) Focus(delegate func(p Primitive)) {
i.finished(-1) i.finished(-1)
return return
} }
i.Box.Focus(delegate)
} }
// render re-populates the [Image.pixels] slice besed on the current settings, // render re-populates the [Image.pixels] slice besed on the current settings,