mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-07 01:56:45 +01:00
factor input handling into modes
This commit is contained in:
parent
648c37e9d4
commit
48f651fc0f
5 changed files with 115 additions and 74 deletions
10
src/keys/save.rs
Normal file
10
src/keys/save.rs
Normal 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 })
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue