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
1 changed files with 1 additions and 0 deletions

View File

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