mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
13 lines
291 B
Rust
13 lines
291 B
Rust
use crate::*;
|
|
|
|
impl Perch {
|
|
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 })
|
|
}
|
|
}
|