mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
key pattern matching macro
This commit is contained in:
parent
e0c8a427f1
commit
92d747ba2a
7 changed files with 168 additions and 93 deletions
|
|
@ -60,9 +60,9 @@ impl Render<Tui> for AddSampleModal {
|
|||
impl Handle<Tui> for AddSampleModal {
|
||||
fn handle (&mut self, from: &Tui) -> Perhaps<bool> {
|
||||
if handle_keymap(self, &from.event(), KEYMAP_ADD_SAMPLE)? {
|
||||
return Ok(true)
|
||||
return Ok(Some(true))
|
||||
}
|
||||
Ok(true)
|
||||
Ok(Some(true))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue