(&mut self, cx: &mut Context<Self>)
| 342 | }); |
| 343 | } |
| 344 | } |
| 345 | cx.notify(); |
| 346 | } |
| 347 | |
| 348 | pub fn focus_input(&self, window: &mut Window, cx: &mut Context<Self>) { |
| 349 | if let Some(input) = &self.input_state { |
| 350 | input.update(cx, |state, cx| state.focus(window, cx)); |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | pub fn is_mounted(&self) -> bool { |