Better fix for multiple focuses in one frame
This commit is contained in:
parent
348760556a
commit
2625051f75
2 changed files with 11 additions and 10 deletions
|
@ -389,10 +389,6 @@ impl<'a> WindowContext<'a> {
|
|||
pub fn focus(&mut self, handle: &FocusHandle) {
|
||||
let focus_id = handle.id;
|
||||
|
||||
if self.window.focus == Some(focus_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
if self.window.last_blur.is_none() {
|
||||
self.window.last_blur = Some(self.window.focus);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue