Finish removing all dangerous focus APIs
This commit is contained in:
parent
2cde1a2e15
commit
ca8e8d1065
4 changed files with 45 additions and 56 deletions
|
@ -168,9 +168,8 @@ 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 {
|
||||
pub 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