better ac list

This commit is contained in:
thatscringebro
2025-12-17 13:49:31 -05:00
parent 33fb39e732
commit dd6b6f7b2c
4 changed files with 55 additions and 5 deletions

View File

@@ -62,6 +62,28 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, app: &mut App) -> io::Result<
KeyCode::Left => {
app.current_widget = CurrentWidget::AccountList;
}
KeyCode::Char('j') => {
match app.current_widget {
CurrentWidget::AccountList => {
app.next_ac();
}
CurrentWidget::TrxList => {
//app.next_trx();
}
_ => {}
}
}
KeyCode::Char('k') => {
match app.current_widget {
CurrentWidget::AccountList => {
app.previous_ac();
}
CurrentWidget::TrxList => {
//app.previous_trx();
}
_ => {}
}
}
_ => {}
},
CurrentScreen::Exiting => match key.code {