better structure

This commit is contained in:
2025-06-28 15:02:45 +02:00
parent f401d4a995
commit f43be496c1
5 changed files with 36 additions and 26 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ impl Element for Input {
}
impl KeyPressEventHandler for Input {
fn on_keypress(&mut self, events: &Arc<EventManager>, event: Box<KeyEvent>) {
fn on_keypress(&mut self, events: &Arc<EventManager>, event: &KeyEvent) {
match event.code {
crossterm::event::KeyCode::Char(c) => {
self.0.insert(self.1, c);