mirror of https://github.com/rivo/tview.git
fix: set focus on internal Box for Image widget
This commit is contained in:
parent
e22ce9588b
commit
692925c4b4
2
image.go
2
image.go
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue