(&self, e: &mut KeyEvent)
| 76 | } |
| 77 | |
| 78 | fn keydown(&self, e: &mut KeyEvent) { |
| 79 | if let Some(focused) = self.canvas.focused() { |
| 80 | if focused.key_input() { |
| 81 | focused.keydown(e); |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | fn keyup(&self, e: &mut KeyEvent) { |
| 87 | if let Some(focused) = self.canvas.focused() { |