From 639baecee5dfd180382612a83a9e7a17f61d8f8c Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 15 Mar 2023 23:49:57 -0400 Subject: [PATCH] Propagator unfocuses children before focusing a new one --- elements/core/propagator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/elements/core/propagator.go b/elements/core/propagator.go index d0f7bc0..7afb353 100644 --- a/elements/core/propagator.go +++ b/elements/core/propagator.go @@ -132,6 +132,7 @@ func (propagator *Propagator) RequestFocus ( ) { if parent, ok := propagator.core.Parent().(elements.FocusableParent); ok { if parent.RequestFocus(propagator.core.Outer().(elements.Focusable)) { + propagator.HandleUnfocus() propagator.focused = true granted = true }