Simplify focus method in text_editor
This commit is contained in:
parent
695721e120
commit
6734d18359
1 changed files with 1 additions and 7 deletions
|
|
@ -424,13 +424,7 @@ impl<Highlighter: text::Highlighter> operation::Focusable
|
|||
}
|
||||
|
||||
fn focus(&mut self) {
|
||||
let now = Instant::now();
|
||||
|
||||
self.focus = Some(Focus {
|
||||
updated_at: now,
|
||||
now,
|
||||
is_window_focused: true,
|
||||
});
|
||||
self.focus = Some(Focus::now());
|
||||
}
|
||||
|
||||
fn unfocus(&mut self) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue