better ac list
This commit is contained in:
22
src/main.rs
22
src/main.rs
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user