Added license and credits

This commit is contained in:
leviathan
2026-02-13 22:12:30 -05:00
parent 655f019469
commit 2ff9c29406
6 changed files with 154 additions and 2 deletions
+16 -1
View File
@@ -161,7 +161,9 @@ fn run_app<B: ratatui::backend::Backend>(terminal: &mut Terminal<B>, app: &mut A
let command = app.command_input.clone();
app.execute_command(&command)?;
app.command_input.clear();
app.input_mode = InputMode::Normal;
if app.input_mode == InputMode::Command {
app.input_mode = InputMode::Normal;
}
}
KeyCode::Char(c) => {
app.command_input.push(c);
@@ -392,6 +394,19 @@ fn run_app<B: ratatui::backend::Backend>(terminal: &mut Terminal<B>, app: &mut A
}
_ => {}
},
InputMode::License | InputMode::Credits => match key.code {
KeyCode::Esc | KeyCode::Enter => {
app.input_mode = InputMode::Normal;
}
KeyCode::Up | KeyCode::Char('k') => {
app.overlay_scroll = app.overlay_scroll.saturating_sub(1);
}
KeyCode::Down | KeyCode::Char('j') => {
app.overlay_scroll = app.overlay_scroll.saturating_add(1);
}
_ => {}
},
}
}
}