Make Memory::has_focus public (again)
This commit is contained in:
+2
-1
@@ -296,7 +296,8 @@ impl Memory {
|
||||
!self.had_focus_last_frame(id) && self.has_focus(id)
|
||||
}
|
||||
|
||||
pub(crate) fn has_focus(&self, id: Id) -> bool {
|
||||
/// Does this widget have keybaord focus?
|
||||
pub fn has_focus(&self, id: Id) -> bool {
|
||||
self.interaction.focus.id == Some(id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user