fix menu and help bindings
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-11 04:02:55 +03:00
parent 85a144798b
commit cdeb355972
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
(@esc menu) (@esc toggle-menu)
(@f1 help) (@f1 toggle-help)
(@u undo 1) (@u undo 1)
(@shift-u redo 1) (@shift-u redo 1)

View file

@ -203,11 +203,11 @@ handle!(TuiIn: |self: App, input|Ok(if let Some(command) = self.config.keys.comm
} }
#[tengri_proc::command(App)] impl AppCommand { #[tengri_proc::command(App)] impl AppCommand {
fn toggle_help (app: &mut App, value: bool) -> Perhaps<Self> { fn toggle_help (app: &mut App) -> Perhaps<Self> {
app.toggle_dialog(Some(Dialog::Help)); app.toggle_dialog(Some(Dialog::Help));
Ok(None) Ok(None)
} }
fn toggle_menu (app: &mut App, value: bool) -> Perhaps<Self> { fn toggle_menu (app: &mut App) -> Perhaps<Self> {
app.toggle_dialog(Some(Dialog::Menu)); app.toggle_dialog(Some(Dialog::Menu));
Ok(None) Ok(None)
} }