Attempt to remove the dangeous element focus API
This commit is contained in:
parent
43b8d65fee
commit
717b2885f8
5 changed files with 39 additions and 80 deletions
|
@ -168,6 +168,7 @@ impl FocusHandle {
|
|||
self.id.within_focused(cx)
|
||||
}
|
||||
|
||||
// TODO kb now never used?
|
||||
/// Obtains whether this handle contains the given handle in the most recently rendered frame.
|
||||
pub(crate) fn contains(&self, other: &Self, cx: &WindowContext) -> bool {
|
||||
self.id.contains(other.id, cx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue