factor input handling into modes

This commit is contained in:
🪞👃🪞 2025-04-03 23:29:35 +03:00
parent 648c37e9d4
commit 48f651fc0f
5 changed files with 115 additions and 74 deletions

10
src/keys/save.rs Normal file
View file

@ -0,0 +1,10 @@
use crate::*;
impl Taggart {
pub fn mode_save (&mut self, event: &Event) {
todo!()
}
pub fn save_begin (&mut self) {
self.mode = Some(Mode::Save { value: false })
}
}