Fixed issue where containers would not select themselves prperly

This commit is contained in:
Sasha Koshka 2023-02-09 14:25:55 -05:00
parent b15c260dfc
commit c7bebabed5

View File

@ -499,6 +499,7 @@ func (element *Container) childFocusRequestCallback (
granted bool, granted bool,
) { ) {
if element.onFocusRequest != nil && element.onFocusRequest() { if element.onFocusRequest != nil && element.onFocusRequest() {
element.focused = true
element.forFocused (func (child elements.Focusable) bool { element.forFocused (func (child elements.Focusable) bool {
child.HandleUnfocus() child.HandleUnfocus()
return true return true