Add history for add, log and modify

This commit is contained in:
Dheepak Krishnamurthy 2021-03-31 15:24:57 -06:00
parent d4ac3561aa
commit a1cd39a863
2 changed files with 108 additions and 28 deletions

View file

@ -96,13 +96,13 @@ async fn tui_main(_config: &str) -> Result<()> {
// Handle input
match events.next().await? {
Event::Input(input) => {
if input == app.keyconfig.edit {
if input == app.keyconfig.edit && app.mode == AppMode::TaskReport {
events.leave_tui_mode(&mut terminal);
}
let r = app.handle_input(input);
if input == app.keyconfig.edit {
if input == app.keyconfig.edit && app.mode == AppMode::TaskReport {
events.enter_tui_mode(&mut terminal);
}
if r.is_err() {