mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
stub help modal; cleanup
This commit is contained in:
parent
b157a87647
commit
4619d0ea76
9 changed files with 78 additions and 68 deletions
13
src/keys/help.rs
Normal file
13
src/keys/help.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use crate::*;
|
||||
|
||||
impl Taggart {
|
||||
pub fn handle_help (&mut self, event: &Event, _page: u8) {
|
||||
match event {
|
||||
press!(Esc) => { self.mode = None },
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
pub fn help_begin (&mut self) {
|
||||
self.mode = Some(Mode::Help { page: 0 })
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue