use main loop with input everywhere

This commit is contained in:
🪞👃🪞 2024-05-29 11:32:26 +03:00
parent d6bf840a1f
commit 7dd5f7f488
16 changed files with 301 additions and 168 deletions

View file

@ -10,7 +10,7 @@ pub fn handle (
match event.code {
KeyCode::Char('c') => {
if event.modifiers == KeyModifiers::CONTROL {
state.exit = true;
state.exit();
}
},
KeyCode::Down => {