(&self, e: &mut KeyEvent)
| 378 | } |
| 379 | |
| 380 | fn keydown(&self, e: &mut KeyEvent) { |
| 381 | let mut component = self.component.borrow_mut(); |
| 382 | |
| 383 | if component.onkeydown.is_some() { |
| 384 | let _ = component.onkeydown.get().try_send(e.clone()); |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | fn textinput(&self, e: &mut TextEvent) { |
| 389 | let mut component = self.component.borrow_mut(); |