Use short-hand field notation in TextInput
This commit is contained in:
parent
178bd2d83c
commit
c649ec8cf7
1 changed files with 1 additions and 1 deletions
|
|
@ -1043,7 +1043,7 @@ impl State {
|
||||||
pub fn focus(&mut self) {
|
pub fn focus(&mut self) {
|
||||||
let now = Instant::now();
|
let now = Instant::now();
|
||||||
|
|
||||||
self.is_focused = Some(Focus { at: now, now: now });
|
self.is_focused = Some(Focus { at: now, now });
|
||||||
|
|
||||||
self.move_cursor_to_end();
|
self.move_cursor_to_end();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue