bug fix: don't lock focus by default
This commit is contained in:
parent
0b52813f62
commit
aa3c40c49f
2 changed files with 4 additions and 4 deletions
|
@ -309,9 +309,9 @@ impl Memory {
|
||||||
self.interaction.focus.id == Some(id)
|
self.interaction.focus.id == Some(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn lock_focus(&mut self, id: Id, b: bool) {
|
pub(crate) fn lock_focus(&mut self, id: Id, lock_focus: bool) {
|
||||||
if self.had_focus_last_frame(id) && self.has_focus(id) {
|
if self.had_focus_last_frame(id) && self.has_focus(id) {
|
||||||
self.interaction.focus.is_focus_locked = b;
|
self.interaction.focus.is_focus_locked = lock_focus;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ impl<'t> TextEdit<'t> {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
desired_width: None,
|
desired_width: None,
|
||||||
desired_height_rows: 1,
|
desired_height_rows: 1,
|
||||||
lock_focus: true,
|
lock_focus: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ impl<'t> TextEdit<'t> {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
desired_width: None,
|
desired_width: None,
|
||||||
desired_height_rows: 4,
|
desired_height_rows: 4,
|
||||||
lock_focus: true,
|
lock_focus: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue