Fix typo in comment

This commit is contained in:
Piotr Osiewicz 2024-01-24 14:03:12 +01:00
parent fe2cb9f9ca
commit 0d0c85a5ee

View File

@ -345,7 +345,7 @@ impl Pane {
// We not only check whether our focus handle contains focus, but also
// whether the active_item might have focus, because we might have just activated an item
// but that hasn't rendered yet.
// So before the next render, we might have transfered focus
// So before the next render, we might have transferred focus
// to the item and `focus_handle.contains_focus` returns false because the `active_item`
// is not hooked up to us in the dispatch tree.
self.focus_handle.contains_focused(cx)