(&self, e: &mut KeyEvent)
| 370 | } |
| 371 | |
| 372 | fn keyup(&self, e: &mut KeyEvent) { |
| 373 | let mut component = self.component.borrow_mut(); |
| 374 | |
| 375 | if component.onkeyup.is_some() { |
| 376 | let _ = component.onkeyup.get().try_send(e.clone()); |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | fn keydown(&self, e: &mut KeyEvent) { |
| 381 | let mut component = self.component.borrow_mut(); |